Skip to content

Commit b159fc2

Browse files
committed
add miss tests
1 parent 93d515f commit b159fc2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

enginetest/queries/script_queries.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,20 @@ var ScriptTests = []ScriptTest{
125125
// https://github.com/dolthub/dolt/issues/9812
126126
Name: "String-to-number comparison operators should behave consistently",
127127
Assertions: []ScriptTestAssertion{
128+
{
129+
Query: "SELECT ('A') = (0)",
130+
Expected: []sql.Row{{true}},
131+
ExpectedWarningsCount: 1,
132+
ExpectedWarning: mysql.ERTruncatedWrongValue,
133+
ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",
134+
},
135+
{
136+
Query: "SELECT ('A') IN (0)",
137+
Expected: []sql.Row{{true}},
138+
ExpectedWarningsCount: 1,
139+
ExpectedWarning: mysql.ERTruncatedWrongValue,
140+
ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",
141+
},
128142
{
129143
Query: "SELECT ('A') != (0)",
130144
Expected: []sql.Row{{false}},

0 commit comments

Comments
 (0)