Skip to content

Commit 4094693

Browse files
committed
[ga-format-pr] Run ./format_repo.sh to fix formatting
1 parent e27a016 commit 4094693

File tree

3 files changed

+18
-20
lines changed

3 files changed

+18
-20
lines changed

enginetest/queries/script_queries.go

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -171,64 +171,64 @@ var ScriptTests = []ScriptTest{
171171
Dialect: "mysql",
172172
Assertions: []ScriptTestAssertion{
173173
{
174-
Query: "SELECT ('A') = (0)",
175-
Expected: []sql.Row{{true}},
174+
Query: "SELECT ('A') = (0)",
175+
Expected: []sql.Row{{true}},
176176
//ExpectedWarningsCount: 1,
177177
//ExpectedWarning: mysql.ERTruncatedWrongValue,
178178
//ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",
179179
},
180180
{
181-
Query: "SELECT ('A') IN (0)",
182-
Expected: []sql.Row{{true}},
181+
Query: "SELECT ('A') IN (0)",
182+
Expected: []sql.Row{{true}},
183183
//ExpectedWarningsCount: 1,
184184
//ExpectedWarning: mysql.ERTruncatedWrongValue,
185185
//ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",
186186
},
187187
{
188-
Query: "SELECT ('A') != (0)",
189-
Expected: []sql.Row{{false}},
188+
Query: "SELECT ('A') != (0)",
189+
Expected: []sql.Row{{false}},
190190
//ExpectedWarningsCount: 1,
191191
//ExpectedWarning: mysql.ERTruncatedWrongValue,
192192
//ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",
193193
},
194194
{
195-
Query: "SELECT ('A') <> (0)",
196-
Expected: []sql.Row{{false}},
195+
Query: "SELECT ('A') <> (0)",
196+
Expected: []sql.Row{{false}},
197197
//ExpectedWarningsCount: 1,
198198
//ExpectedWarning: mysql.ERTruncatedWrongValue,
199199
//ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",
200200
},
201201
{
202-
Query: "SELECT ('A') < (0)",
203-
Expected: []sql.Row{{false}},
202+
Query: "SELECT ('A') < (0)",
203+
Expected: []sql.Row{{false}},
204204
//ExpectedWarningsCount: 1,
205205
//ExpectedWarning: mysql.ERTruncatedWrongValue,
206206
//ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",
207207
},
208208
{
209-
Query: "SELECT ('A') <= (0)",
210-
Expected: []sql.Row{{true}},
209+
Query: "SELECT ('A') <= (0)",
210+
Expected: []sql.Row{{true}},
211211
//ExpectedWarningsCount: 1,
212212
//ExpectedWarning: mysql.ERTruncatedWrongValue,
213213
//ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",
214214
},
215215
{
216-
Query: "SELECT ('A') > (0)",
217-
Expected: []sql.Row{{false}},
216+
Query: "SELECT ('A') > (0)",
217+
Expected: []sql.Row{{false}},
218218
//ExpectedWarningsCount: 1,
219219
//ExpectedWarning: mysql.ERTruncatedWrongValue,
220220
//ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",
221221
},
222222
{
223-
Query: "SELECT ('A') >= (0)",
224-
Expected: []sql.Row{{true}},
223+
Query: "SELECT ('A') >= (0)",
224+
Expected: []sql.Row{{true}},
225225
//ExpectedWarningsCount: 1,
226226
//ExpectedWarning: mysql.ERTruncatedWrongValue,
227227
//ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",
228228
},
229229
{
230-
Query: "SELECT ('A') NOT IN (0)",
231-
Expected: []sql.Row{{false}},
230+
Query: "SELECT ('A') NOT IN (0)",
231+
Expected: []sql.Row{{false}},
232232
//ExpectedWarningsCount: 1,
233233
//ExpectedWarning: mysql.ERTruncatedWrongValue,
234234
//ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",

sql/expression/convert.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,6 @@ func prepareForNumericContext(val interface{}, originType sql.Type, isInt bool)
488488
return convertHexBlobToDecimalForNumericContext(val, originType)
489489
}
490490

491-
492491
// trimStringToNumberPrefix trims a string to the appropriate number prefix
493492
func trimStringToNumberPrefix(s string, isInt bool) string {
494493
if isInt {

sql/expression/in.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ func NewNotInTuple(left sql.Expression, right sql.Expression) sql.Expression {
152152
return NewNot(NewInTuple(left, right))
153153
}
154154

155-
156155
// HashInTuple is an expression that checks an expression is inside a list of expressions using a hashmap.
157156
type HashInTuple struct {
158157
in *InTuple

0 commit comments

Comments
 (0)