Skip to content

Commit 9cc1ac5

Browse files
elianddbclaude
andcommitted
Remove redundant float/double auto_increment tests from insert_queries.go
- Removed "auto increment on float" and "auto increment on double" tests - These scenarios are now impossible since CREATE TABLE fails for float/double AUTO_INCREMENT - Validation is already covered in script_queries.go tests - Eliminates duplicate test coverage for the same validation logic 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 5664ecf commit 9cc1ac5

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

enginetest/queries/insert_queries.go

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,28 +1285,6 @@ var InsertScripts = []ScriptTest{
12851285
},
12861286
},
12871287
},
1288-
{
1289-
Name: "auto increment on float",
1290-
Dialect: "mysql",
1291-
SetUpScript: []string{},
1292-
Assertions: []ScriptTestAssertion{
1293-
{
1294-
Query: "create table auto (pk float primary key auto_increment)",
1295-
ExpectedErrStr: "Incorrect column specifier for column 'pk'",
1296-
},
1297-
},
1298-
},
1299-
{
1300-
Name: "auto increment on double",
1301-
Dialect: "mysql",
1302-
SetUpScript: []string{},
1303-
Assertions: []ScriptTestAssertion{
1304-
{
1305-
Query: "create table auto (pk double primary key auto_increment)",
1306-
ExpectedErrStr: "Incorrect column specifier for column 'pk'",
1307-
},
1308-
},
1309-
},
13101288
{
13111289
Name: "sql_mode=NO_auto_value_ON_ZERO",
13121290
Dialect: "mysql",

0 commit comments

Comments
 (0)