-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
.columns_dict doesn't work for all possible column types #92
Comments
From https://www.sqlite.org/datatype3.html it looks like So actually sqlite-utils/sqlite_utils/db.py Lines 28 to 48 in 43f1c6a
|
Fixing that would technically constitute a breaking change for library consumers, so it should be a major version release. I'm not inclined to release |
Turns out there are a TON of valid column definitions that aren't being considered yet - https://www.sqlite.org/datatype3.html#affinity_name_examples - stuff like |
Actually it looks like I should implement the exact rules described in https://www.sqlite.org/datatype3.html#determination_of_column_affinity
|
I currently treat those as sqlite-utils/sqlite_utils/db.py Lines 68 to 69 in 43f1c6a
|
I'm going to keep treating them as |
Released in 2.4.2. |
Got this error:
.columns_dict
usesREVERSE_COLUMN_TYPE_MAPPING
:sqlite-utils/sqlite_utils/db.py
Lines 457 to 463 in 43f1c6a
REVERSE_COLUMN_TYPE_MAPPING
definesFLOAT
notREAL
Asqlite-utils/sqlite_utils/db.py
Lines 68 to 74 in 43f1c6a
The text was updated successfully, but these errors were encountered: