Skip to content

Commit f86c000

Browse files
author
James Cor
committed
fix tests
1 parent 8cbd988 commit f86c000

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

enginetest/queries/information_schema_queries.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1812,7 +1812,7 @@ from information_schema.routines where routine_schema = 'mydb' and routine_type
18121812
Assertions: []ScriptTestAssertion{
18131813
{
18141814
Query: "show databases like 'information_schema';",
1815-
Expected: []sql.Row{{"information_schema"}},
1815+
Expected: []sql.UntypedSqlRow{{"information_schema"}},
18161816
},
18171817
{
18181818
Query: "create database information_schema;",
@@ -1824,7 +1824,7 @@ from information_schema.routines where routine_schema = 'mydb' and routine_type
18241824
},
18251825
{
18261826
Query: "show databases like 'information_schema';",
1827-
Expected: []sql.Row{{"information_schema"}},
1827+
Expected: []sql.UntypedSqlRow{{"information_schema"}},
18281828
},
18291829
},
18301830
},

enginetest/queries/insert_queries.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2775,12 +2775,12 @@ var InsertIgnoreScripts = []ScriptTest{
27752775
},
27762776
{
27772777
Query: "insert ignore into test_table values (1, 'invalid'), (2, 'bye'), (3, null)",
2778-
Expected: []sql.Row{{types.OkResult{RowsAffected: 3}}},
2778+
Expected: []sql.UntypedSqlRow{{types.OkResult{RowsAffected: 3}}},
27792779
//ExpectedWarning: mysql.ERWarnDataTruncated, // TODO: incorrect code
27802780
},
27812781
{
27822782
Query: "select * from test_table",
2783-
Expected: []sql.Row{{1, ""}, {2, "bye"}, {3, nil}},
2783+
Expected: []sql.UntypedSqlRow{{1, ""}, {2, "bye"}, {3, nil}},
27842784
},
27852785
},
27862786
},
@@ -3055,11 +3055,11 @@ var InsertBrokenScripts = []ScriptTest{
30553055
Assertions: []ScriptTestAssertion{
30563056
{
30573057
Query: "INSERT INTO test (pk) VALUES (1);",
3058-
Expected: []sql.Row{{types.NewOkResult(1)}},
3058+
Expected: []sql.UntypedSqlRow{{types.NewOkResult(1)}},
30593059
},
30603060
{
30613061
Query: "select * from t2;",
3062-
Expected: []sql.Row{{1, "a"}},
3062+
Expected: []sql.UntypedSqlRow{{1, "a"}},
30633063
},
30643064
},
30653065
},

0 commit comments

Comments
 (0)