diff --git a/connection.go b/connection.go index 77a7f24e6..45486274b 100644 --- a/connection.go +++ b/connection.go @@ -18,16 +18,15 @@ import ( ) type mysqlConn struct { - cfg *config - flags clientFlag - netConn net.Conn buf *buffer - protocol uint8 - sequence uint8 + netConn net.Conn affectedRows uint64 insertId uint64 + cfg *config maxPacketAllowed int maxWriteSize int + flags clientFlag + sequence uint8 parseTime bool strict bool } diff --git a/utils_test.go b/utils_test.go index 9142a5e97..d19c92731 100644 --- a/utils_test.go +++ b/utils_test.go @@ -112,10 +112,10 @@ func TestScanNullTime(t *testing.T) { for _, tst := range scanTests { err = nt.Scan(tst.in) if (err != nil) != tst.error { - t.Errorf("%v: expected error status %b, got %b", tst.in, tst.error, (err != nil)) + t.Errorf("%v: expected error status %t, got %t", tst.in, tst.error, (err != nil)) } if nt.Valid != tst.valid { - t.Errorf("%v: expected valid status %b, got %b", tst.in, tst.valid, nt.Valid) + t.Errorf("%v: expected valid status %t, got %t", tst.in, tst.valid, nt.Valid) } if nt.Time != tst.time { t.Errorf("%v: expected time %v, got %v", tst.in, tst.time, nt.Time)