We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7788e7e commit 828e8dcCopy full SHA for 828e8dc
sql/expression/function/date.go
@@ -477,6 +477,7 @@ func NewUnixTimestamp(args ...sql.Expression) (sql.Expression, error) {
477
return &UnixTimestamp{Date: arg}, nil
478
}
479
// special case: text types with fractional seconds preserve scale
480
+ // e.g. '2000-01-02 12:34:56.000' -> scale 3
481
if types.IsText(arg.Type()) {
482
dateStr := date.(string)
483
idx := strings.Index(dateStr, ".")
0 commit comments