diff --git a/tests/realtikvtest/txntest/txn_test.go b/tests/realtikvtest/txntest/txn_test.go index 0e7b6932697ea..44760606d4d1d 100644 --- a/tests/realtikvtest/txntest/txn_test.go +++ b/tests/realtikvtest/txntest/txn_test.go @@ -262,7 +262,6 @@ func TestPrintSelectResult(t *testing.T) { for i := 0; i < 103; i++ { tk.MustExec(fmt.Sprintf("insert into print_result values (%d, '%s')", i, "a")) expected = append(expected, fmt.Sprintf("%d a", i)) - } tk.MustQuery("select * from print_result").Check(testkit.Rows(expected...)) } diff --git a/util/sqlexec/simple_record_set.go b/util/sqlexec/simple_record_set.go index f2e2830d3dcba..0c5e582f0881b 100644 --- a/util/sqlexec/simple_record_set.go +++ b/util/sqlexec/simple_record_set.go @@ -89,10 +89,10 @@ func NewLogWrapped(rs RecordSet, maxCachedRows int, fields ...zap.Field) RecordS type recordSetLoggerWrapper struct { rs RecordSet - maxCachedRows int cachedRows []string - zapFields []zap.Field fieldTypes []*types.FieldType + zapFields []zap.Field + maxCachedRows int } func (r *recordSetLoggerWrapper) Fields() []*ast.ResultField {