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{
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 }},
You can’t perform that action at this time.
0 commit comments