unsigned int column has incorrect type and tag #29
Labels
No Label
bug
duplicate
enhancement
feature
help wanted
invalid
question
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/reverse#29
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
what I expected:
what I got:
xorm 不支持 unsigned int 姑且不提,reverse 逆向出来的结果避开 unsigned 的tag,给正确的 uint 类型应该是可以的。
比较担心的是数据库实际类型是 unsigned int,但 xorm tag 只写了 INT ,Go 类型又是 uint32 会不会导致反序列化结果出问题。
convert
unsigned int
tostring
is safe. But we actually should useuint32
.同样问题 +1
#31 should fix the problem.