Skip to content

Fix SQLite/SqlCE validation failure on tables with a schema #1790

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

fredericDelaporte
Copy link
Member

@fredericDelaporte fredericDelaporte commented Jul 11, 2018

Fixes #1609.
Fixes #1096.

See the issue comments, that is hacks all the way for fixing a hack from 2008. But reverting this ten years old hack is likely to be a big breaking change fro SQLite users, so well, I think it is still better to fix it that way.

@fredericDelaporte fredericDelaporte added this to the 5.2 milestone Jul 11, 2018
{
case MsSql2000Dialect _:
case PostgreSQLDialect _:
case SQLiteDialect _:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SQL Ce uses the same pattern as SQLiteDialect

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, done two years later in e79f47e. Now I have checked Dialect.Qualify overrides, no other database does that, although Firebird and MySql do not support schema either.

(Firebird may be fixed by overriding Qualify for ignoring catalog and schema; I think it is better than introducing the hack in it. MySql should ideally be fixed for ignoring schema; but this may be a breaking change for people "benefiting" of the current behavior handling schema like a catalog (provided catalog is not supplied at the same time). Anyway both cases would have to be handled in another PRs.)

@fredericDelaporte fredericDelaporte changed the title Fix SQLite validation failure on tables with a schema Fix SQLite/SqlCE validation failure on tables with a schema Jul 11, 2018
hazzik
hazzik previously approved these changes Jul 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Schema validation using SQLite and a specific schema fails NH-2836 - SchemaValidator throws with SqlCe4 if db-schema set
2 participants