don't log ascii in binary at sql trace...

This commit is contained in:
Matthew Hodgson 2020-09-01 21:59:11 +01:00
parent 6424117852
commit 85bce11964

View file

@ -96,7 +96,7 @@ func (in *traceInterceptor) RowsNext(c context.Context, rows driver.Rows, dest [
b := strings.Builder{} b := strings.Builder{}
for i, val := range dest { for i, val := range dest {
b.WriteString(fmt.Sprintf("%v", val)) b.WriteString(fmt.Sprintf("%q", val))
if i+1 <= len(dest)-1 { if i+1 <= len(dest)-1 {
b.WriteString(" | ") b.WriteString(" | ")
} }