Skip to content

Implement parallel support for ODBC and OLE DB #45

Closed

Description

@lauxjpn

Continues the discussion around this feature from #43.

Activity

  1. added this to the 3.1.x milestone on Mar 27, 2020
  2. self-assigned this
    on Mar 27, 2020
  3. lauxjpn commented on Mar 27, 2020

    @lauxjpn
    MemberAuthor

    For all advanced statements (like CREATE VIEW or CREATE PROCEDURE) to work with ODBC, ExtendedAnsiSQL=1 has 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 (like CREATE VIEW). The backtick is the official identifier character for ODBC and works for OLE DB and in Access as well.

  4. lauxjpn commented on Mar 28, 2020

    @lauxjpn
    MemberAuthor

    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.

  5. lauxjpn commented on Mar 28, 2020

    @lauxjpn
    MemberAuthor

    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.

  6. lauxjpn commented on Mar 29, 2020

    @lauxjpn
    MemberAuthor

    For all advanced statements (like CREATE VIEW or CREATE PROCEDURE) to work with ODBC, ExtendedAnsiSQL=1 has 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.

    Implemented in bdfbafa of #47.

  7. bubibubi commented on Mar 29, 2020

    @bubibubi
    Member

    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).

  8. lauxjpn commented on Mar 29, 2020

    @lauxjpn
    MemberAuthor

    I looked at the code. There are still square brackets around (at least in RemoveBrackets method).

    Thanks, I missed a couple of those! I checked the EFCore.Jet and System.Data.Jet projects and fixed the remaining occurrences (see 6141f1e of #47).

    because as far as I can understand all the tests work fine now

    They should all be running, but we are far away from having all the test green.

  9. bubibubi commented on Mar 29, 2020

    @bubibubi
    Member

    @lauxjpn WHAT A HUGE WORK!!! Great!!!

  10. bubibubi commented on Mar 29, 2020

    @bubibubi
    Member

    They should all be running, but we are far away from having all the test green.

    When you think that everything is stable enough tell me something because I'd like to help you on test fixing.

  11. lauxjpn commented on Mar 29, 2020

    @lauxjpn
    MemberAuthor

    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.

  12. modified the milestones: 3.1.x, 3.1.0-alpha.1 on Nov 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions