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

Microsoft.Data.Sqlite: Handle column type ANY #28628

Open
bricelam opened this issue Aug 8, 2022 · 4 comments
Open

Microsoft.Data.Sqlite: Handle column type ANY #28628

bricelam opened this issue Aug 8, 2022 · 4 comments

Comments

@bricelam
Copy link
Contributor

bricelam commented Aug 8, 2022

SQLite 3.37.0 added support for STRICT tables which codified a new column type name--ANY. We should review the places we use the column type name and make sure we're handling ANY appropriately.

For example, SqliteDataReader.GetFieldType should probably return object when the column type is ANY.

@roji
Copy link
Member

roji commented Aug 9, 2022

Whoa, is SqlClient Sqlite a proper strongly-typed relational database now? 🤣

We could also add migration support for the new STRICT table setting in the EF provider (or even... make it the default 🔥🔥🔥)

@roji
Copy link
Member

roji commented Aug 9, 2022

After all, the Sqlite docs themselves say some developers "are aghast at SQLite's flagrant rule-breaking" 🤣

@ErikEJ
Copy link
Contributor

ErikEJ commented Aug 9, 2022

@roji

Whoa, is SqlClient a proper strongly-typed relational database now?

Assume you mean SQLite (SQL Server has always been that)

@roji
Copy link
Member

roji commented Aug 9, 2022

Of course, corrected.

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

No branches or pull requests

4 participants