fix(go): write tdengine timestamps as epoch millis
This commit is contained in:
@@ -420,7 +420,7 @@ func literal(value any) string {
|
||||
}
|
||||
switch typed := value.(type) {
|
||||
case time.Time:
|
||||
return "'" + typed.UTC().Format("2006-01-02 15:04:05.000") + "'"
|
||||
return strconv.FormatInt(typed.UnixMilli(), 10)
|
||||
case string:
|
||||
return "'" + quote(typed) + "'"
|
||||
case envelope.ParseStatus:
|
||||
|
||||
Reference in New Issue
Block a user