Merge pull request #696 from sanrentai/master

the sqlserver type money  should be converted to float64
This commit is contained in:
John Guo
2020-06-05 21:08:49 +08:00
committed by GitHub

View File

@ -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))