Skip to content

Commit b6cb946

Browse files
elianddbclaude
andcommitted
Add back missing foreign key violation test cases
- Add tests for basic FK violations with non-existent parent values - Test both same precision (99.99) and different precision (99.9) violations - Ensures comprehensive coverage of FK constraint validation scenarios 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 3272c0d commit b6cb946

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

enginetest/queries/script_queries.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10206,6 +10206,14 @@ where
1020610206
Query: "insert into child_dec_65_30 values (1.23);",
1020710207
ExpectedErr: sql.ErrForeignKeyChildViolation,
1020810208
},
10209+
{
10210+
Query: "insert into child_dec_4_2 values (99.99);",
10211+
ExpectedErr: sql.ErrForeignKeyChildViolation,
10212+
},
10213+
{
10214+
Query: "insert into child_dec_4_1 values (99.9);",
10215+
ExpectedErr: sql.ErrForeignKeyChildViolation,
10216+
},
1020910217
},
1021010218
},
1021110219

0 commit comments

Comments
 (0)