-
Notifications
You must be signed in to change notification settings - Fork 687
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
Microsoft.Data.Sqlite v6 crashes with ArgumentException #534
Comments
I am on 5.3.13, which came out today, btw |
@da3dsoul NHibernate does not support Microsoft’s implementation of SQLite out of the box. I guess you are using one from NHibernate.Extensions. Please file bug there. https://github.com/beginor/nhibernate-extensions |
Ah actually it was FluentNHibernate. Fair enough. Well, just so you know, by making IncludeDataTypesInReservedWords false, it does seem to work. I can also confirm that the newer features like drop column work via SQLQuery, which is nice. |
Fixed by #619 |
File a bug
We moved to Microsoft.Data.Sqlite 6, as it has better support for dropping columns in Sqlite by my understanding
In our move, we encountered the old GetSchema issue, which seems to be addressed in v6...kind of.
NHibernate used to get around the issue by catching the NotSupportedException. Now it doesn't throw, but instead goes through:
SqliteDialect -> SqliteDataBaseMetaData -> AbstractDataBaseSchema -> GetReservedWords() -> Connection.GetSchema(string) with this implementation:
which then goes to SqliteConnection.GetSchema(string collectionName, Array.Empty())
DataTypes isn't handled there, so if
IncludeDataTypesInReservedWords
is true, which it always is for SqliteDataBaseMetaData, then it will throw the ArgumentException.I don't how important DataTypes is in this context, but there's the research I've done. Hope I helped.
The text was updated successfully, but these errors were encountered: