@@ -40,11 +40,11 @@ var TransactionTests = []TransactionTest{
40
40
Assertions : []ScriptTestAssertion {
41
41
{
42
42
Query : "/* client a */ set @@autocommit = 0;" ,
43
- Expected : []sql.Row {{}},
43
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
44
44
},
45
45
{
46
46
Query : "/* client b */ set @@autocommit = 0;" ,
47
- Expected : []sql.Row {{}},
47
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
48
48
},
49
49
{
50
50
Query : "/* client a */ select @@autocommit;" ,
@@ -120,11 +120,11 @@ var TransactionTests = []TransactionTest{
120
120
Assertions : []ScriptTestAssertion {
121
121
{
122
122
Query : "/* client a */ set autocommit = off" ,
123
- Expected : []sql.Row {{}},
123
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
124
124
},
125
125
{
126
126
Query : "/* client b */ set autocommit = off" ,
127
- Expected : []sql.Row {{}},
127
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
128
128
},
129
129
{
130
130
Query : "/* client b */ select * from t order by x" ,
@@ -191,11 +191,11 @@ var TransactionTests = []TransactionTest{
191
191
Assertions : []ScriptTestAssertion {
192
192
{
193
193
Query : "/* client a */ set autocommit = off" ,
194
- Expected : []sql.Row {{}},
194
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
195
195
},
196
196
{
197
197
Query : "/* client b */ set autocommit = off" ,
198
- Expected : []sql.Row {{}},
198
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
199
199
},
200
200
{
201
201
Query : "/* client b */ insert into t values (2,2)" ,
@@ -208,7 +208,7 @@ var TransactionTests = []TransactionTest{
208
208
// should commit any pending transaction
209
209
{
210
210
Query : "/* client b */ set autocommit = on" ,
211
- Expected : []sql.Row {{}},
211
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
212
212
},
213
213
{
214
214
Query : "/* client a */ select * from t order by x" ,
@@ -217,7 +217,7 @@ var TransactionTests = []TransactionTest{
217
217
// client a sees the committed transaction from client b when it begins a new transaction
218
218
{
219
219
Query : "/* client a */ set autocommit = on" ,
220
- Expected : []sql.Row {{}},
220
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
221
221
},
222
222
{
223
223
Query : "/* client a */ select * from t order by x" ,
@@ -283,11 +283,11 @@ var TransactionTests = []TransactionTest{
283
283
Assertions : []ScriptTestAssertion {
284
284
{
285
285
Query : "/* client a */ set autocommit = off" ,
286
- Expected : []sql.Row {{}},
286
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
287
287
},
288
288
{
289
289
Query : "/* client b */ set autocommit = off" ,
290
- Expected : []sql.Row {{}},
290
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
291
291
},
292
292
{
293
293
Query : "/* client a */ start transaction" ,
@@ -360,11 +360,11 @@ var TransactionTests = []TransactionTest{
360
360
Assertions : []ScriptTestAssertion {
361
361
{
362
362
Query : "/* client a */ set autocommit = off" ,
363
- Expected : []sql.Row {{}},
363
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
364
364
},
365
365
{
366
366
Query : "/* client b */ set autocommit = off" ,
367
- Expected : []sql.Row {{}},
367
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
368
368
},
369
369
{
370
370
Query : "/* client a */ start transaction" ,
@@ -529,11 +529,11 @@ var TransactionTests = []TransactionTest{
529
529
Assertions : []ScriptTestAssertion {
530
530
{
531
531
Query : "/* client a */ set autocommit = off" ,
532
- Expected : []sql.Row {{}},
532
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
533
533
},
534
534
{
535
535
Query : "/* client b */ set autocommit = off" ,
536
- Expected : []sql.Row {{}},
536
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
537
537
},
538
538
{
539
539
Query : "/* client a */ start transaction" ,
@@ -666,15 +666,15 @@ var TransactionTests = []TransactionTest{
666
666
Assertions : []ScriptTestAssertion {
667
667
{
668
668
Query : "/* client a */ set autocommit = off" ,
669
- Expected : []sql.Row {{}},
669
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
670
670
},
671
671
{
672
672
Query : "/* client b */ set autocommit = off" ,
673
- Expected : []sql.Row {{}},
673
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
674
674
},
675
675
{
676
676
Query : "/* client c */ set autocommit = off" ,
677
- Expected : []sql.Row {{}},
677
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
678
678
},
679
679
// Client a starts by insert into t
680
680
{
@@ -958,7 +958,7 @@ var TransactionTests = []TransactionTest{
958
958
Assertions : []ScriptTestAssertion {
959
959
{
960
960
Query : "/* client a */ set autocommit = off" ,
961
- Expected : []sql.Row {{}},
961
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
962
962
},
963
963
{
964
964
Query : "/* client a */ create temporary table tmp(pk int primary key)" ,
@@ -1074,7 +1074,7 @@ var TransactionTests = []TransactionTest{
1074
1074
Assertions : []ScriptTestAssertion {
1075
1075
{
1076
1076
Query : "/* client a */ set @@autocommit = 0;" ,
1077
- Expected : []sql.Row {{}},
1077
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
1078
1078
},
1079
1079
{
1080
1080
Query : "/* client a */ start transaction;" ,
@@ -1131,7 +1131,7 @@ var TransactionTests = []TransactionTest{
1131
1131
1132
1132
{
1133
1133
Query : "/* client a */ set @@autocommit = 0;" ,
1134
- Expected : []sql.Row {{}},
1134
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
1135
1135
},
1136
1136
{
1137
1137
Query : "/* client a */ start transaction;" ,
@@ -1243,7 +1243,7 @@ var TransactionTests = []TransactionTest{
1243
1243
Assertions : []ScriptTestAssertion {
1244
1244
{
1245
1245
Query : "/* client a */ set @@autocommit = 0;" ,
1246
- Expected : []sql.Row {{}},
1246
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
1247
1247
},
1248
1248
{
1249
1249
Query : "/* client a */ start transaction;" ,
@@ -1285,7 +1285,7 @@ var TransactionTests = []TransactionTest{
1285
1285
Assertions : []ScriptTestAssertion {
1286
1286
{
1287
1287
Query : "/* client a */ set @@autocommit = 0;" ,
1288
- Expected : []sql.Row {{}},
1288
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
1289
1289
},
1290
1290
{
1291
1291
Query : "/* client a */ start transaction;" ,
@@ -1327,7 +1327,7 @@ var TransactionTests = []TransactionTest{
1327
1327
Assertions : []ScriptTestAssertion {
1328
1328
{
1329
1329
Query : "/* client a */ set @@autocommit = 0;" ,
1330
- Expected : []sql.Row {{}},
1330
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
1331
1331
},
1332
1332
{
1333
1333
Query : "/* client a */ start transaction;" ,
@@ -1365,7 +1365,7 @@ var TransactionTests = []TransactionTest{
1365
1365
Assertions : []ScriptTestAssertion {
1366
1366
{
1367
1367
Query : "/* client a */ set @@autocommit = 0;" ,
1368
- Expected : []sql.Row {{}},
1368
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
1369
1369
},
1370
1370
{
1371
1371
Query : "/* client a */ start transaction;" ,
@@ -1386,7 +1386,7 @@ var TransactionTests = []TransactionTest{
1386
1386
Assertions : []ScriptTestAssertion {
1387
1387
{
1388
1388
Query : "/* client a */ set @@autocommit = 0;" ,
1389
- Expected : []sql.Row {{}},
1389
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
1390
1390
},
1391
1391
{
1392
1392
Query : "/* client a */ start transaction;" ,
@@ -1408,7 +1408,7 @@ var TransactionTests = []TransactionTest{
1408
1408
Assertions : []ScriptTestAssertion {
1409
1409
{
1410
1410
Query : "/* client a */ set @@autocommit = 0;" ,
1411
- Expected : []sql.Row {{}},
1411
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
1412
1412
},
1413
1413
{
1414
1414
Query : "/* client a */ start transaction;" ,
@@ -1430,7 +1430,7 @@ var TransactionTests = []TransactionTest{
1430
1430
Assertions : []ScriptTestAssertion {
1431
1431
{
1432
1432
Query : "/* client a */ set @@autocommit = 0;" ,
1433
- Expected : []sql.Row {{}},
1433
+ Expected : []sql.Row {{types . NewOkResult ( 0 ) }},
1434
1434
},
1435
1435
{
1436
1436
Query : "/* client a */ start transaction;" ,
0 commit comments