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 have a simple test server set up to run off todos in a database. I'm using the gorm ORM and it's default gorm.Model that defines common fields for models. One of which happens to be the ID field which is of type uint.
When I make a query to this, I get back "id": 0 for all records. If I change the return to int(todo.ID) then I get back the expected ID value.
It appears the reason is that coerceInt does not support the uint type. Also missing are int8, int16, int32, int64, and the uint series as well. When I get the opportunity I'll see about making a pull request to address this.