Skip to content

Commit 17e8eb1

Browse files
committed
Fix INSERT IGNORE enum test expectations
- Update test to expect ErrDataTruncatedForColumn instead of ErrConvertingToEnum - Removes TODO comment as the fix is now implemented - Matches MySQL behavior for enum validation error messages
1 parent a9b4f49 commit 17e8eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enginetest/queries/insert_queries.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2836,7 +2836,7 @@ var InsertIgnoreScripts = []ScriptTest{
28362836
Assertions: []ScriptTestAssertion{
28372837
{
28382838
Query: "insert into test_table values (1, 'invalid'), (2, 'comparative politics'), (3, null)",
2839-
ExpectedErr: types.ErrConvertingToEnum, // TODO: should be ErrDataTruncatedForColumn
2839+
ExpectedErr: types.ErrDataTruncatedForColumn,
28402840
},
28412841
{
28422842
Query: "insert ignore into test_table values (1, 'invalid'), (2, 'bye'), (3, null)",

0 commit comments

Comments
 (0)