File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,20 @@ var ScriptTests = []ScriptTest{
125
125
// https://github.com/dolthub/dolt/issues/9812
126
126
Name : "String-to-number comparison operators should behave consistently" ,
127
127
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
+ },
128
142
{
129
143
Query : "SELECT ('A') != (0)" ,
130
144
Expected : []sql.Row {{false }},
You can’t perform that action at this time.
0 commit comments