This commit is contained in:
noMoon 2021-06-01 12:48:34 -04:00
parent c80e794a6a
commit ffecb8f764

View File

@ -82,7 +82,7 @@ func ExplainSQL(sql string, numericPlaceholder *regexp.Regexp, escaper string, a
vars[idx] = strconv.FormatFloat(v.(float64), 'f', -1, 64)
case string:
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:
rv := reflect.ValueOf(v)
if v == nil || !rv.IsValid() || rv.Kind() == reflect.Ptr && rv.IsNil() {