sync2命令执行时number(36,2)类型字段出现不应该的警告 #1831
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#1831
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?
当前我使用postgre数据库
字段定义如下
Qty float64
xorm:"numeric(36,2)"
然后这样的定义使用sync2创建数据表
然后再次执行时,出现下面的警告
[xorm] [warn] 2020/11/16 14:33:07.833650 Table xxx column Qty db type is NUMERIC, struct type is NUMERIC(32,6)
numeric is an alias of decimal on postgres, so when you create a type of numeric, postgres will return
decimal
.