feature:Add mill-seconds for Auto time
This commit is contained in:
parent
acb337ba1f
commit
584b723590
|
@ -26,8 +26,10 @@ func FormatTime(dialect Dialect, sqlTypeName string, t time.Time) (v interface{}
|
||||||
} else {
|
} else {
|
||||||
v = t.Format(time.RFC3339Nano)
|
v = t.Format(time.RFC3339Nano)
|
||||||
}
|
}
|
||||||
case schemas.BigInt, schemas.Int:
|
case schemas.Int:
|
||||||
v = t.Unix()
|
v = t.Unix()
|
||||||
|
case schemas.BigInt: //Add mill-seconds
|
||||||
|
v = t.UnixNano()/1e6
|
||||||
default:
|
default:
|
||||||
v = t
|
v = t
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue