Closed mhmzdev closed 1 year ago
Oh I thought it was also called bool
in sql, but it appears to be boolean
. I can just change that.
Its weird that there weren't any issues so far. I think its probably handled as an alias, mut maybe not in all cases.
Edit: Its actually not an issue with the database, but the 'postgres' dart package that does not handle 'bool' as an alias for 'boolean'. But I will change it anyways to be consistent with the spec.
Thanks man Let me know if I need to close this issue
p.s are you maintaining postgres as well? Or just this stormberry?
I will close it when done.
No just this.
This is fixed now with v0.13.0.
stormberry: 0.12.1
The error because of dart type
bool
and postgres SQL typeboolean
. As I'm usingbool
in my dart classes, so it's failing to bind that class or convert it into a SQL based query.The moment I modify the
model.schema.g
file and replace allbool
withboolean
it start working.Model Class
Schema Class
This is where I make change to fix this, replace
bool
withboolean
and it will work.‼️ Error