-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
SQLiteDecoder & Codable with NULL Values #997
Comments
No. You need to handle it yourself. I came up with this if you wanna try : Put this somewhere
and change the following func in Coding.swift :
And then in Hope it will help :) |
Thanks for your support, will try that. |
@TenMaKo |
I don’t use SPM so I’m not sure about this but I think you can’t cause SPM import pre-built packages. |
@TenMaKo Don't you think you should create a PR and then merge this fix into master. More people are facing the issue.. |
No sorry cause this is just a workaround. A clean fix should make standard Codable usage for this lib handle optionals correctly. |
@TenMaKo got it thanks for clarification... |
@TenMaKo Feel free to open a PR to fix this issue |
Are null values actually supported by your SQLiteDecoder?
Build Information
CocoaPods, SQLite.swift version 0.12.2
iOS 13.4, XCode 11.4.1
General guidelines
I just tried to read an array of my table's contents, but then I got an exception.
In Coding.swift:235 I get an error by QueryError.unexpectedNullValue.
Are null values within Codables supported?
The text was updated successfully, but these errors were encountered: