@@ -118,7 +118,7 @@ func TestCRUD(t *testing.T) {
118
118
if rows .Next () {
119
119
rows .Scan (& out )
120
120
if true != out {
121
- t .Errorf ("true != %d " , out )
121
+ t .Errorf ("true != %t " , out )
122
122
}
123
123
124
124
if rows .Next () {
@@ -143,7 +143,7 @@ func TestCRUD(t *testing.T) {
143
143
if rows .Next () {
144
144
rows .Scan (& out )
145
145
if false != out {
146
- t .Errorf ("false != %d " , out )
146
+ t .Errorf ("false != %t " , out )
147
147
}
148
148
149
149
if rows .Next () {
@@ -262,7 +262,7 @@ func TestFloat(t *testing.T) {
262
262
if rows .Next () {
263
263
rows .Scan (& out )
264
264
if in != out {
265
- t .Errorf ("%s: %d != %d " , v , in , out )
265
+ t .Errorf ("%s: %g != %g " , v , in , out )
266
266
}
267
267
} else {
268
268
t .Errorf ("%s: no data" , v )
@@ -502,7 +502,7 @@ func TestCloseStmtBeforeRows(t *testing.T) {
502
502
t .Fatalf ("Error on rows.Scan(): %v" , err )
503
503
}
504
504
if out != true {
505
- t .Errorf ("true != %d " , out )
505
+ t .Errorf ("true != %t " , out )
506
506
}
507
507
}
508
508
}
@@ -557,7 +557,7 @@ func TestStmtMultiRows(t *testing.T) {
557
557
t .Fatalf ("Error on rows.Scan(): %v" , err )
558
558
}
559
559
if out != true {
560
- t .Errorf ("true != %d " , out )
560
+ t .Errorf ("true != %t " , out )
561
561
}
562
562
}
563
563
@@ -574,7 +574,7 @@ func TestStmtMultiRows(t *testing.T) {
574
574
t .Fatalf ("Error on rows.Scan(): %v" , err )
575
575
}
576
576
if out != true {
577
- t .Errorf ("true != %d " , out )
577
+ t .Errorf ("true != %t " , out )
578
578
}
579
579
}
580
580
@@ -592,7 +592,7 @@ func TestStmtMultiRows(t *testing.T) {
592
592
t .Fatalf ("Error on rows.Scan(): %v" , err )
593
593
}
594
594
if out != false {
595
- t .Errorf ("false != %d " , out )
595
+ t .Errorf ("false != %t " , out )
596
596
}
597
597
598
598
if rows1 .Next () {
@@ -617,7 +617,7 @@ func TestStmtMultiRows(t *testing.T) {
617
617
t .Fatalf ("Error on rows.Scan(): %v" , err )
618
618
}
619
619
if out != false {
620
- t .Errorf ("false != %d " , out )
620
+ t .Errorf ("false != %t " , out )
621
621
}
622
622
623
623
if rows2 .Next () {
0 commit comments