Skip to content

Commit eaa5fd9

Browse files
committed
add another test
1 parent 5feb06b commit eaa5fd9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

enginetest/queries/queries.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4291,6 +4291,12 @@ SELECT * FROM cte WHERE d = 2;`,
42914291
ExpectedWarningsCount: 1,
42924292
Expected: []sql.Row{{time.Date(2020, time.January, 1, 0, 0, 0, 0, time.UTC)}},
42934293
},
4294+
{
4295+
Query: "select cast('2020-01-01abc123' as date)",
4296+
ExpectedWarning: 1292,
4297+
ExpectedWarningsCount: 1,
4298+
Expected: []sql.Row{{time.Date(2020, time.January, 1, 0, 0, 0, 0, time.UTC)}},
4299+
},
42944300
{
42954301
Query: `SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM othertable) othertable_one) othertable_two) othertable_three WHERE s2 = 'first'`,
42964302
Expected: []sql.Row{

0 commit comments

Comments
 (0)