Skip to content

Use new information schema syntax for HistoryRepository checks#70

Merged
lauxjpn merged 2 commits intoCirrusRedOrg:masterfrom
lauxjpn:fix/issue69
Nov 26, 2020
Merged

Use new information schema syntax for HistoryRepository checks#70
lauxjpn merged 2 commits intoCirrusRedOrg:masterfrom
lauxjpn:fix/issue69

Conversation

@lauxjpn
Copy link
Copy Markdown
Member

@lauxjpn lauxjpn commented Nov 25, 2020

The JetHistoryRepository was still using the old SHOW TABLES syntax.

While we are at it, we also now throw if any of the block methods (used for idempotent scripts) is being called, because Jet does not have procedural IF statements etc., so the previous code would just fail.

However, since we are already parsing the commands anyway, and also support the simple IF (NOT) EXISTS (foo) THEN syntax, we could actually support IF...BEGIN...END blocks in the future, if there is need in the community for it.
But since this is all provider customized syntax, a generated idempotent script would need to be executed using System.Data.Jet to work, so we should provide a simple script execution class and a wrapper command line tool for that.

Fixes #69

@lauxjpn lauxjpn added the bug label Nov 25, 2020
@lauxjpn lauxjpn added this to the 3.1.0-alpha.1 milestone Nov 25, 2020
@lauxjpn lauxjpn self-assigned this Nov 25, 2020
@lauxjpn lauxjpn merged commit 6a7b286 into CirrusRedOrg:master Nov 26, 2020
@lauxjpn lauxjpn deleted the fix/issue69 branch November 26, 2020 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GetAppliedMigrations() throws OleDBException

1 participant