struct中含有uint64字段且位数超过一定长度后,插入的数据不对。 #722
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#722
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?
例如:
type User struct{
ID int
xorm:"'id' pk autoincr"
UserId uint64
xorm:"'userId' decimal(25,0)"
}
user:=&User{
ID:1,
UserId:13137389433644122112,
}
engine.Insert(user)
在数据库中的userId为-5309354640065429504
查找原因,发现在session_convert.go#658中
return int64(fieldValue.Uint()), nil 不合理。
不能将uint64强转为int64.
目前没有支持uint
@lunny 请问,好像现在还是不支持是吗?
对,目前还没有支持。