You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error when I try to set a column as an UInt32 with null: false
(using it in amber framework with mysql adapter, all in latest versions)
03:13:29 watch.run (Info) Building...
Showing last frame. Use --error-trace for full trace.
There was a problem expanding macro 'base_mapping'
Code in macro 'draw_mapping'
3 | base_mapping(true)
^
Called macro defined in lib/jennifer/src/jennifer/model/mapping.cr:206:7
206 | macro base_mapping(strict = true)
Which expanded to:
> 505 |
> 506 | begin
> 507 | __temp_221.as(UInt32)
^
Error: can't cast Nil to UInt32
I hope you've already found the root cause but otherwise here is my thought. Likrly the reason is that you pass nil to one of your UInt32 field. Unfortunately because of the dynamic nature of mapping system compilation errors may be not very obvious. Please use --error-trace for full log so it'll be easier to debug
I'm getting this error when I try to set a column as an UInt32 with null: false
(using it in amber framework with mysql adapter, all in latest versions)
Relevant model mapping:
The text was updated successfully, but these errors were encountered: