Skip to content

Commit c61589e

Browse files
committed
More mysql dialect exceptions
1 parent 1c2dfd2 commit c61589e

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

enginetest/queries/script_queries.go

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5090,7 +5090,6 @@ CREATE TABLE tab3 (
50905090
},
50915091
{
50925092
Name: "Querying existing view that references non-existing table",
5093-
Dialect: "mysql",
50945093
SetUpScript: []string{
50955094
"CREATE TABLE a(id int primary key, col1 int);",
50965095
"CREATE VIEW b AS SELECT * FROM a;",
@@ -5354,7 +5353,7 @@ CREATE TABLE tab3 (
53545353
},
53555354
},
53565355
{
5357-
Name: "Complex Filter Index Scan",
5356+
Name: "Complex Filter Index Scan #2",
53585357
SetUpScript: []string{
53595358
"create table t (pk int primary key, v1 int, v2 int, v3 int, v4 int);",
53605359
"create index v_idx on t (v1, v2, v3, v4);",
@@ -5370,7 +5369,7 @@ CREATE TABLE tab3 (
53705369
},
53715370
},
53725371
{
5373-
Name: "Complex Filter Index Scan",
5372+
Name: "Complex Filter Index Scan #3",
53745373
SetUpScript: []string{
53755374
"create table t (pk integer primary key, col0 integer, col1 float);",
53765375
"create index idx on t (col0, col1);",
@@ -5984,6 +5983,7 @@ CREATE TABLE tab3 (
59845983
},
59855984
{
59865985
Name: "floats in tuple are properly hashed",
5986+
Dialect: "mysql",
59875987
SetUpScript: []string{
59885988
"create table t (b bool);",
59895989
"insert into t values (false);",
@@ -6020,6 +6020,7 @@ CREATE TABLE tab3 (
60206020
},
60216021
{
60226022
Name: "strings in tuple are properly hashed",
6023+
Dialect: "mysql",
60236024
SetUpScript: []string{
60246025
"create table t (v varchar(100));",
60256026
"insert into t values (false);",
@@ -6111,6 +6112,7 @@ CREATE TABLE tab3 (
61116112
},
61126113
{
61136114
Name: "resolve foreign key on indexed update",
6115+
Dialect: "mysql", // no way to disable foreign keys in doltgres yet
61146116
SetUpScript: []string{
61156117
"set foreign_key_checks=0;",
61166118
"create table parent (i int primary key);",
@@ -6128,6 +6130,7 @@ CREATE TABLE tab3 (
61286130
},
61296131
{
61306132
Name: "between type conversion",
6133+
Dialect: "mysql",
61316134
SetUpScript: []string{
61326135
"create table t0(c0 bool);",
61336136
"create table t1(c1 bool);",
@@ -6182,6 +6185,7 @@ CREATE TABLE tab3 (
61826185
},
61836186
{
61846187
Name: "bool and string",
6188+
Dialect: "mysql",
61856189
SetUpScript: []string{
61866190
"CREATE TABLE t0(c0 BOOL, PRIMARY KEY(c0));",
61876191
"INSERT INTO t0 (c0) VALUES (true);",
@@ -6212,6 +6216,7 @@ CREATE TABLE tab3 (
62126216
},
62136217
{
62146218
Name: "bool and int",
6219+
Dialect: "mysql",
62156220
SetUpScript: []string{
62166221
"CREATE TABLE t0(c0 INTEGER, PRIMARY KEY(c0));",
62176222
"INSERT INTO t0 (c0) VALUES (true);",
@@ -6315,6 +6320,7 @@ CREATE TABLE tab3 (
63156320
},
63166321
{
63176322
Name: "range query convert int to string zero value",
6323+
Dialect: "mysql",
63186324
SetUpScript: []string{
63196325
`CREATE TABLE t0(c0 VARCHAR(500));`,
63206326
`INSERT INTO t0(c0) VALUES ('a');`,
@@ -6951,7 +6957,6 @@ where
69516957
{"12345", "1234567890"},
69526958
},
69536959
},
6954-
69556960
{
69566961
Query: "insert into t2 (a, b) values ('1234567890', '12345')",
69576962
ExpectedErrStr: "string '1234567890' is too large for column 'a'",
@@ -7015,6 +7020,7 @@ where
70157020
},
70167021
{
70177022
Name: "test show create database",
7023+
Dialect: "mysql",
70187024
SetUpScript: []string{
70197025
"create database def_db;",
70207026
"create database latin1_db character set latin1;",
@@ -7050,6 +7056,7 @@ where
70507056
},
70517057
{
70527058
Name: "test create database with modified server variables",
7059+
Dialect: "mysql",
70537060
SetUpScript: []string{
70547061
"set @@session.character_set_server = 'latin1';",
70557062
"create database latin1_db;",
@@ -7078,6 +7085,7 @@ where
70787085
},
70797086
{
70807087
Name: "test index naming",
7088+
Dialect: "mysql",
70817089
SetUpScript: []string{
70827090
"create table t (i int);",
70837091
"alter table t add index (i);",
@@ -7120,6 +7128,7 @@ where
71207128
},
71217129
{
71227130
Name: "test parenthesized tables",
7131+
Dialect: "mysql",
71237132
SetUpScript: []string{
71247133
"create table t1 (i int);",
71257134
"insert into t1 values (1), (2), (3);",
@@ -7222,6 +7231,7 @@ where
72227231
},
72237232
{
72247233
Name: "unix_timestamp script tests",
7234+
Dialect: "mysql",
72257235
SetUpScript: []string{
72267236
"set time_zone = 'UTC';",
72277237
"create table t1 (i int primary key, v varchar(100));",
@@ -7252,6 +7262,7 @@ where
72527262
},
72537263
{
72547264
Name: "name_const queries",
7265+
Dialect: "mysql",
72557266
SetUpScript: []string{
72567267
"create table t (i int primary key);",
72577268
"insert into t values (1), (2), (3);",

0 commit comments

Comments
 (0)