mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
Merge pull request #696 from sanrentai/master
the sqlserver type money should be converted to float64
This commit is contained in:
@ -51,8 +51,7 @@ func (c *Core) convertValue(fieldValue []byte, fieldType string) interface{} {
|
||||
case
|
||||
"big_int",
|
||||
"bigint",
|
||||
"bigserial",
|
||||
"money":
|
||||
"bigserial":
|
||||
if gstr.ContainsI(fieldType, "unsigned") {
|
||||
gconv.Uint64(string(fieldValue))
|
||||
}
|
||||
@ -65,6 +64,7 @@ func (c *Core) convertValue(fieldValue []byte, fieldType string) interface{} {
|
||||
"float",
|
||||
"double",
|
||||
"decimal",
|
||||
"money",
|
||||
"numeric":
|
||||
return gconv.Float64(string(fieldValue))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user