|
|
@ -6,6 +6,7 @@ import (
|
|
|
|
"fmt"
|
|
|
|
"fmt"
|
|
|
|
"strconv"
|
|
|
|
"strconv"
|
|
|
|
"strings"
|
|
|
|
"strings"
|
|
|
|
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
|
|
"github.com/zeromicro/go-zero/core/mapping"
|
|
|
|
"github.com/zeromicro/go-zero/core/mapping"
|
|
|
@ -152,6 +153,14 @@ func writeValue(buf *strings.Builder, arg interface{}) {
|
|
|
|
buf.WriteByte('\'')
|
|
|
|
buf.WriteByte('\'')
|
|
|
|
buf.WriteString(escape(v))
|
|
|
|
buf.WriteString(escape(v))
|
|
|
|
buf.WriteByte('\'')
|
|
|
|
buf.WriteByte('\'')
|
|
|
|
|
|
|
|
case time.Time:
|
|
|
|
|
|
|
|
buf.WriteByte('\'')
|
|
|
|
|
|
|
|
buf.WriteString(v.String())
|
|
|
|
|
|
|
|
buf.WriteByte('\'')
|
|
|
|
|
|
|
|
case *time.Time:
|
|
|
|
|
|
|
|
buf.WriteByte('\'')
|
|
|
|
|
|
|
|
buf.WriteString(v.String())
|
|
|
|
|
|
|
|
buf.WriteByte('\'')
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
buf.WriteString(mapping.Repr(v))
|
|
|
|
buf.WriteString(mapping.Repr(v))
|
|
|
|
}
|
|
|
|
}
|
|
|
|