From f6c2206b8828f675808ff077589954574bc18ebf Mon Sep 17 00:00:00 2001 From: John Guo Date: Mon, 25 Oct 2021 19:50:52 +0800 Subject: [PATCH] improve logging content field name from selected/updated to rows --- database/gdb/gdb_core.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/gdb/gdb_core.go b/database/gdb/gdb_core.go index c1725802e..394b49eb9 100644 --- a/database/gdb/gdb_core.go +++ b/database/gdb/gdb_core.go @@ -626,9 +626,9 @@ func (c *Core) writeSqlToLogger(ctx context.Context, sql *Sql) { ) switch sql.Type { case sqlTypeQueryContext: - sqlTypeKey = `selected` + sqlTypeKey = `rows` default: - sqlTypeKey = `affected` + sqlTypeKey = `rows` } if sql.IsTransaction { if v := ctx.Value(transactionIdForLoggerCtx); v != nil {