feat: 新增 ScanRows 接口
This commit is contained in:
@@ -148,7 +148,7 @@ func formatRowValues(values ...any) string {
|
||||
case nil:
|
||||
formattedValues[i] = "null"
|
||||
case time.Time:
|
||||
formattedValues[i] = fmt.Sprintf("'%s'", v.Format("2006-01-02 15:04:05"))
|
||||
formattedValues[i] = fmt.Sprintf("'%s'", v.Format(time.RFC3339))
|
||||
default:
|
||||
if reflect.TypeOf(val).Kind() == reflect.Ptr && reflect.ValueOf(val).IsNil() {
|
||||
formattedValues[i] = "null"
|
||||
|
||||
Reference in New Issue
Block a user