Skip to content

Commit 855df22

Browse files
committed
simplify microsecond function
1 parent 50099a5 commit 855df22

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sql/expression/function/time.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -936,9 +936,6 @@ var (
936936
return (int(t.Month())-1)/3 + 1
937937
})
938938
microsecond = datePartFunc(func(t time.Time) interface{} {
939-
if t.Equal(types.ZeroTime) {
940-
return 0
941-
}
942939
return uint64(t.Nanosecond()) / uint64(time.Microsecond)
943940
})
944941
)

0 commit comments

Comments
 (0)