From 85bce11964b77ee6ccce35fd5676c8de40acbac2 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Tue, 1 Sep 2020 21:59:11 +0100 Subject: [PATCH] don't log ascii in binary at sql trace... --- internal/sqlutil/trace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/sqlutil/trace.go b/internal/sqlutil/trace.go index c3892aac..376e6f49 100644 --- a/internal/sqlutil/trace.go +++ b/internal/sqlutil/trace.go @@ -96,7 +96,7 @@ func (in *traceInterceptor) RowsNext(c context.Context, rows driver.Rows, dest [ b := strings.Builder{} for i, val := range dest { - b.WriteString(fmt.Sprintf("%v", val)) + b.WriteString(fmt.Sprintf("%q", val)) if i+1 <= len(dest)-1 { b.WriteString(" | ") }