Skip to content
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

Remove timestamp "type" special handling in SQLite schema provider #4449

Open
MaceWindu opened this issue Mar 15, 2024 · 1 comment
Open

Comments

@MaceWindu
Copy link
Contributor

See https://forum.linqpad.net/discussion/3128/cant-insert-records-with-timestamp-fields-in-sqlite#latest

For some unknown reason we treat column with type name timespan as autogenerated field. This doesn't make sense as:

  • type names in SQLite means nothing
  • there is no autogenerated columns in SQLite

We should remove this code https://github.com/linq2db/linq2db/blob/master/Source/LinqToDB/DataProvider/SQLite/SQLiteSchemaProvider.cs#L117-L118

@igor-tkachev
Copy link
Member

Ok. Just add a compatibility flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants