You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: enginetest/queries/script_queries.go
+19-9Lines changed: 19 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -7499,6 +7499,22 @@ where
7499
7499
},
7500
7500
},
7501
7501
},
7502
+
{
7503
+
Name: "coalesce with system types",
7504
+
SetUpScript: []string{
7505
+
"create table t as select @@admin_port as port1, @@port as port2, COALESCE(@@admin_port, @@port) as\n port3;",
7506
+
},
7507
+
Assertions: []ScriptTestAssertion{
7508
+
{
7509
+
Query: "describe t;",
7510
+
Expected: []sql.Row{
7511
+
{"port1", "bigint", "NO", "", nil, ""},
7512
+
{"port2", "bigint", "NO", "", nil, ""},
7513
+
{"port3", "bigint", "NO", "", nil, ""},
7514
+
},
7515
+
},
7516
+
},
7517
+
},
7502
7518
}
7503
7519
7504
7520
varSpatialScriptTests= []ScriptTest{
@@ -8809,21 +8825,17 @@ var CreateDatabaseScripts = []ScriptTest{
8809
8825
Expected: []sql.Row{{types.NewOkResult(1)}},
8810
8826
},
8811
8827
{
8812
-
SkipResultCheckOnServerEngine: true, // tracking issue here, https://github.com/dolthub/dolt/issues/6921. Also for when run with prepares, the warning is added twice
8813
-
Query: "SHOW WARNINGS /* 1 */",
8814
-
Expected: []sql.Row{{"Warning", 1235, "Setting CHARACTER SET, COLLATION and ENCRYPTION are not supported yet"}},
8828
+
Query: "SHOW WARNINGS /* 1 */",
8829
+
Expected: []sql.Row{{"Warning", 1235, "Setting CHARACTER SET, COLLATION and ENCRYPTION are not supported yet"}},
// TODO: There should only be one warning (the warnings are not clearing for create database query) AND 'PREPARE' statements should not create warning from its query
8823
8836
Query: "SHOW WARNINGS /* 2 */",
8824
8837
Expected: []sql.Row{
8825
8838
{"Warning", 1235, "Setting CHARACTER SET, COLLATION and ENCRYPTION are not supported yet"},
8826
-
{"Warning", 1235, "Setting CHARACTER SET, COLLATION and ENCRYPTION are not supported yet"},
8827
8839
},
8828
8840
},
8829
8841
{
@@ -8939,10 +8951,8 @@ var DropDatabaseScripts = []ScriptTest{
0 commit comments