Skip to content

Commit be19fb0

Browse files
elianddbclaude
andcommitted
Fix charset validation tests compatibility with doltgres
Add Dialect: "mysql" to all charset validation tests to prevent them from running against doltgres (PostgreSQL), which doesn't support sql_mode. This resolves test failures where doltgres was trying to execute MySQL-specific sql_mode commands like 'STRICT_TRANS_TABLES' that don't exist in PostgreSQL. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 0a01d07 commit be19fb0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

enginetest/queries/script_queries.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7166,6 +7166,7 @@ where
71667166
},
71677167
{
71687168
Name: "charset validation strict vs non-strict mode",
7169+
Dialect: "mysql",
71697170
SetUpScript: []string{
71707171
"create table charset_test (c char(10), v varchar(10), txt text) character set utf8mb4;",
71717172
},
@@ -7230,6 +7231,7 @@ where
72307231
},
72317232
{
72327233
Name: "charset validation issue #8893 - customer scenario",
7234+
Dialect: "mysql",
72337235
SetUpScript: []string{
72347236
"create table products (id int primary key, name text character set utf8mb4);",
72357237
},
@@ -7266,6 +7268,7 @@ where
72667268
},
72677269
{
72687270
Name: "charset validation edge cases - formatInvalidByteForError testing",
7271+
Dialect: "mysql",
72697272
SetUpScript: []string{
72707273
"create table charset_edge_test (c char(10), v varchar(20), t text);",
72717274
},
@@ -7407,6 +7410,7 @@ where
74077410
},
74087411
{
74097412
Name: "charset validation ASCII range tests",
7413+
Dialect: "mysql",
74107414
SetUpScript: []string{
74117415
"create table ascii_test (c char(10), v varchar(20), t text);",
74127416
},

0 commit comments

Comments
 (0)