|
15 | 15 | package queries |
16 | 16 |
|
17 | 17 | import ( |
18 | | - "github.com/dolthub/vitess/go/mysql" |
19 | 18 | "math" |
20 | 19 | "time" |
21 | 20 |
|
@@ -140,51 +139,51 @@ var ScriptTests = []ScriptTest{ |
140 | 139 | //ExpectedWarningMessageSubstring: "Truncated incorrect double value: A", |
141 | 140 | }, |
142 | 141 | { |
143 | | - Query: "SELECT ('A') != (0)", |
144 | | - Expected: []sql.Row{{false}}, |
145 | | - ExpectedWarningsCount: 1, |
| 142 | + Query: "SELECT ('A') != (0)", |
| 143 | + Expected: []sql.Row{{false}}, |
| 144 | + ExpectedWarningsCount: 1, |
146 | 145 | //ExpectedWarning: mysql.ERTruncatedWrongValue, |
147 | 146 | //ExpectedWarningMessageSubstring: "Truncated incorrect double value: A", |
148 | 147 | }, |
149 | 148 | { |
150 | | - Query: "SELECT ('A') <> (0)", |
151 | | - Expected: []sql.Row{{false}}, |
152 | | - ExpectedWarningsCount: 1, |
| 149 | + Query: "SELECT ('A') <> (0)", |
| 150 | + Expected: []sql.Row{{false}}, |
| 151 | + ExpectedWarningsCount: 1, |
153 | 152 | //ExpectedWarning: mysql.ERTruncatedWrongValue, |
154 | 153 | //ExpectedWarningMessageSubstring: "Truncated incorrect double value: A", |
155 | 154 | }, |
156 | 155 | { |
157 | | - Query: "SELECT ('A') < (0)", |
158 | | - Expected: []sql.Row{{false}}, |
159 | | - ExpectedWarningsCount: 1, |
| 156 | + Query: "SELECT ('A') < (0)", |
| 157 | + Expected: []sql.Row{{false}}, |
| 158 | + ExpectedWarningsCount: 1, |
160 | 159 | //ExpectedWarning: mysql.ERTruncatedWrongValue, |
161 | 160 | //ExpectedWarningMessageSubstring: "Truncated incorrect double value: A", |
162 | 161 | }, |
163 | 162 | { |
164 | | - Query: "SELECT ('A') <= (0)", |
165 | | - Expected: []sql.Row{{true}}, |
166 | | - ExpectedWarningsCount: 1, |
| 163 | + Query: "SELECT ('A') <= (0)", |
| 164 | + Expected: []sql.Row{{true}}, |
| 165 | + ExpectedWarningsCount: 1, |
167 | 166 | //ExpectedWarning: mysql.ERTruncatedWrongValue, |
168 | 167 | //ExpectedWarningMessageSubstring: "Truncated incorrect double value: A", |
169 | 168 | }, |
170 | 169 | { |
171 | | - Query: "SELECT ('A') > (0)", |
172 | | - Expected: []sql.Row{{false}}, |
173 | | - ExpectedWarningsCount: 1, |
| 170 | + Query: "SELECT ('A') > (0)", |
| 171 | + Expected: []sql.Row{{false}}, |
| 172 | + ExpectedWarningsCount: 1, |
174 | 173 | //ExpectedWarning: mysql.ERTruncatedWrongValue, |
175 | 174 | //ExpectedWarningMessageSubstring: "Truncated incorrect double value: A", |
176 | 175 | }, |
177 | 176 | { |
178 | | - Query: "SELECT ('A') >= (0)", |
179 | | - Expected: []sql.Row{{true}}, |
180 | | - ExpectedWarningsCount: 1, |
| 177 | + Query: "SELECT ('A') >= (0)", |
| 178 | + Expected: []sql.Row{{true}}, |
| 179 | + ExpectedWarningsCount: 1, |
181 | 180 | //ExpectedWarning: mysql.ERTruncatedWrongValue, |
182 | 181 | //ExpectedWarningMessageSubstring: "Truncated incorrect double value: A", |
183 | 182 | }, |
184 | 183 | { |
185 | | - Query: "SELECT ('A') NOT IN (0)", |
186 | | - Expected: []sql.Row{{false}}, |
187 | | - ExpectedWarningsCount: 1, |
| 184 | + Query: "SELECT ('A') NOT IN (0)", |
| 185 | + Expected: []sql.Row{{false}}, |
| 186 | + ExpectedWarningsCount: 1, |
188 | 187 | //ExpectedWarning: mysql.ERTruncatedWrongValue, |
189 | 188 | //ExpectedWarningMessageSubstring: "Truncated incorrect double value: A", |
190 | 189 | }, |
|
0 commit comments