-
Notifications
You must be signed in to change notification settings - Fork 371
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
RealColumn - toDouble convert error on Select #33
Comments
Good morning, very good @simolus3 . Thanks for the correction. As you did not update in pud.dev I still made this change in hand here to be able to work. Taking advantage of this post, could you give me an example of how to use withDefault () in column creation? I tried every way and I could not. |
Regarding the usage of |
Seriously, is it that simple? I've tried so many ways, I've read the documentation withDefault so many times and the only thing I did not try to do was put some Constant. Thank you so much for this, will help me out more! |
If I create a column with type RealColumn and set it as nullable (), the insertion happens normally, but at the time of the select it generates an error saying that it is not possible to convert a null value to double. How can I solve this? I really need this column to be nullable.
RealColumn get sorStartTravelLon => real().named("sorStartTravelLon").nullable()();
E/flutter (10165): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: NoSuchMethodError: The method 'toDouble' was called on null. E/flutter (10165): Receiver: null E/flutter (10165): Tried calling: toDouble()
The text was updated successfully, but these errors were encountered: