fixed wrong sql type used for *float64

This commit is contained in:
Nash Tsai 2013-12-08 21:29:02 +08:00
parent 1f54b91076
commit 56d44a1472
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ func ptrType2SQLType(t reflect.Type) (st SQLType, has bool) {
case "*float32": case "*float32":
st = SQLType{Float, 0, 0} st = SQLType{Float, 0, 0}
case "*float64": case "*float64":
st = SQLType{Varchar, 64, 0} st = SQLType{Double, 0, 0}
case "*int64", "*uint64": case "*int64", "*uint64":
st = SQLType{BigInt, 0, 0} st = SQLType{BigInt, 0, 0}
case "*time.Time": case "*time.Time":