-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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: Improve SqliteDataReader.GetSchemaTable() DataType when no rows #13839
Comments
It's worth noting that this only happens to empty tables. If I manually correct the types, and add data to the DataTable, |
Related to #435. This happens because columns don't have static types in SQLite. It uses a dynamic type system. The type comes from each field, not the column definition. At its worst, this means each row could actually have a different type. |
We should apply the same decision for #435 to |
(I'm leaning toward using the column's type affinity at this point.) |
@Perksey, what license is the code you posted under? |
MIT |
I'm using a custom DataAdapter i wrote to fill the void for the lack of one in this library, that is as follows:
After creating a table, I then
SELECT * FROM
the table, and useSqliteDataAdapter.Fill()
. However, all of the types are set to Int32. This also happens when usingDataTable.Load()
.The text was updated successfully, but these errors were encountered: