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

dorm.adapter.Sqlite3 ignores nullable columns #50

Open
skamradt opened this issue Sep 27, 2021 · 0 comments
Open

dorm.adapter.Sqlite3 ignores nullable columns #50

skamradt opened this issue Sep 27, 2021 · 0 comments

Comments

@skamradt
Copy link

The nullable attribute is ignored on columns when performing an update or insert.

I believe the simplest path to get this working is to modify SetSqlite3ParameterValue to also pass the current field mapping and a similar substitution made for null as what is done for an empty blob.

In the test case that I came up with, I have an optional column which is a string and indexed unique. Not allowing empty string to be nulls would mean that the field is no longer optional and would generate a key violation.

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

No branches or pull requests

1 participant