You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement parallel support for ODBC and OLE DB #45
We should do this implicitly in EFCore.Jet, so that nobody has to worry about it. In case anybody complains about it in the future for some reason, we can always add an option to disable it.
I also had to switch the identifier character from [identifier] (square brackets) to `identifier` (backticks) because ODBC complaint about the square brackets when used for the newly supported ODBC 4.0 statements (like CREATE VIEW). The backtick is the official identifier character for ODBC and works for OLE DB and in Access as well.
I am going to add support for automatic provider/driver detection, so that just specifying a database name will use the newest installed database provider/driver.
We can get rid of JetConfiguration.OleDbDefaultProvider and JetConfiguration.OdbcDefaultProvider with that.
In the future, we should consider refactoring the ODBC/OLE DB conditionals into their own self-contained classes, and ship them as EntityFrameworkCore.Jet.Odbc and EntityFrameworkCore.Jet.OleDb, that could then be discovered by EntityFrameworkCore.Jet at runtime.
We should do this implicitly in EFCore.Jet, so that nobody has to worry about it. In case anybody complains about it in the future for some reason, we can always add an option to disable it.
I looked at the code. There are still square brackets around (at least in RemoveBrackets method). Probably we could just find [ and replace (or, better, cover with tests because as far as I can understand all the tests work fine now).
The code should be stable enough after merging #47 (which I am going to do in a couple of hours). We currently have 1110 green, 788 red and 100 skipped tests from the SimpleQueryJetTest tests.
Activity
lauxjpn commentedon Mar 27, 2020
For all advanced statements (like
CREATE VIEWorCREATE PROCEDURE) to work with ODBC,ExtendedAnsiSQL=1has do be added to the connection string (see Using the ExtendedAnsiSQL Connection String Attribute (Access Driver) for further details).We should do this implicitly in EFCore.Jet, so that nobody has to worry about it. In case anybody complains about it in the future for some reason, we can always add an option to disable it.
I also had to switch the identifier character from
[identifier](square brackets) to`identifier`(backticks) because ODBC complaint about the square brackets when used for the newly supported ODBC 4.0 statements (likeCREATE VIEW). The backtick is the official identifier character for ODBC and works for OLE DB and in Access as well.lauxjpn commentedon Mar 28, 2020
I am going to add support for automatic provider/driver detection, so that just specifying a database name will use the newest installed database provider/driver.
We can get rid of
JetConfiguration.OleDbDefaultProviderandJetConfiguration.OdbcDefaultProviderwith that.lauxjpn commentedon Mar 28, 2020
In the future, we should consider refactoring the ODBC/OLE DB conditionals into their own self-contained classes, and ship them as
EntityFrameworkCore.Jet.OdbcandEntityFrameworkCore.Jet.OleDb, that could then be discovered byEntityFrameworkCore.Jetat runtime.lauxjpn commentedon Mar 29, 2020
Implemented in bdfbafa of #47.
bubibubi commentedon Mar 29, 2020
I looked at the code. There are still square brackets around (at least in RemoveBrackets method). Probably we could just find [ and replace (or, better, cover with tests because as far as I can understand all the tests work fine now).
lauxjpn commentedon Mar 29, 2020
Thanks, I missed a couple of those! I checked the
EFCore.JetandSystem.Data.Jetprojects and fixed the remaining occurrences (see 6141f1e of #47).They should all be running, but we are far away from having all the test green.
bubibubi commentedon Mar 29, 2020
@lauxjpn WHAT A HUGE WORK!!! Great!!!
bubibubi commentedon Mar 29, 2020
When you think that everything is stable enough tell me something because I'd like to help you on test fixing.
lauxjpn commentedon Mar 29, 2020
The code should be stable enough after merging #47 (which I am going to do in a couple of hours). We currently have 1110 green, 788 red and 100 skipped tests from the
SimpleQueryJetTesttests.