add log
This commit is contained in:
parent
c80e794a6a
commit
ffecb8f764
@ -82,7 +82,7 @@ func ExplainSQL(sql string, numericPlaceholder *regexp.Regexp, escaper string, a
|
|||||||
vars[idx] = strconv.FormatFloat(v.(float64), 'f', -1, 64)
|
vars[idx] = strconv.FormatFloat(v.(float64), 'f', -1, 64)
|
||||||
case string:
|
case string:
|
||||||
vars[idx] = escaper + strings.Replace(v, escaper, "\\"+escaper, -1) + escaper
|
vars[idx] = escaper + strings.Replace(v, escaper, "\\"+escaper, -1) + escaper
|
||||||
log.Println("hoho", vars[idx])
|
log.Println("hoho", escaper, vars[idx], v, strings.Replace(v, escaper, "\\"+escaper, -1))
|
||||||
default:
|
default:
|
||||||
rv := reflect.ValueOf(v)
|
rv := reflect.ValueOf(v)
|
||||||
if v == nil || !rv.IsValid() || rv.Kind() == reflect.Ptr && rv.IsNil() {
|
if v == nil || !rv.IsValid() || rv.Kind() == reflect.Ptr && rv.IsNil() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user