Skip to content

Commit bdd8955

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

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

enginetest/queries/script_queries.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
package queries
1616

1717
import (
18-
"github.com/dolthub/vitess/go/mysql"
1918
"math"
2019
"time"
2120

21+
"github.com/dolthub/vitess/go/mysql"
2222
"github.com/dolthub/vitess/go/sqltypes"
2323
"github.com/dolthub/vitess/go/vt/sqlparser"
2424
"gopkg.in/src-d/go-errors.v1"
@@ -154,74 +154,74 @@ var ScriptTests = []ScriptTest{
154154
},
155155
{
156156
// https://github.com/dolthub/dolt/issues/9812
157-
Name: "String-to-number comparison operators should behave consistently",
157+
Name: "String-to-number comparison operators should behave consistently",
158158
Assertions: []ScriptTestAssertion{
159159
{
160-
Dialect: "mysql",
160+
Dialect: "mysql",
161161
Query: "SELECT ('A') = (0)",
162162
Expected: []sql.Row{{true}},
163163
//ExpectedWarningsCount: 1,
164164
//ExpectedWarning: mysql.ERTruncatedWrongValue,
165165
//ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",
166166
},
167167
{
168-
Dialect: "mysql",
168+
Dialect: "mysql",
169169
Query: "SELECT ('A') IN (0)",
170170
Expected: []sql.Row{{true}},
171171
//ExpectedWarningsCount: 1,
172172
//ExpectedWarning: mysql.ERTruncatedWrongValue,
173173
//ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",
174174
},
175175
{
176-
Dialect: "mysql",
176+
Dialect: "mysql",
177177
Query: "SELECT ('A') != (0)",
178178
Expected: []sql.Row{{false}},
179179
//ExpectedWarningsCount: 1,
180180
//ExpectedWarning: mysql.ERTruncatedWrongValue,
181181
//ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",
182182
},
183183
{
184-
Dialect: "mysql",
184+
Dialect: "mysql",
185185
Query: "SELECT ('A') <> (0)",
186186
Expected: []sql.Row{{false}},
187187
//ExpectedWarningsCount: 1,
188188
//ExpectedWarning: mysql.ERTruncatedWrongValue,
189189
//ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",
190190
},
191191
{
192-
Dialect: "mysql",
192+
Dialect: "mysql",
193193
Query: "SELECT ('A') < (0)",
194194
Expected: []sql.Row{{false}},
195195
//ExpectedWarningsCount: 1,
196196
//ExpectedWarning: mysql.ERTruncatedWrongValue,
197197
//ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",
198198
},
199199
{
200-
Dialect: "mysql",
200+
Dialect: "mysql",
201201
Query: "SELECT ('A') <= (0)",
202202
Expected: []sql.Row{{true}},
203203
//ExpectedWarningsCount: 1,
204204
//ExpectedWarning: mysql.ERTruncatedWrongValue,
205205
//ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",
206206
},
207207
{
208-
Dialect: "mysql",
208+
Dialect: "mysql",
209209
Query: "SELECT ('A') > (0)",
210210
Expected: []sql.Row{{false}},
211211
//ExpectedWarningsCount: 1,
212212
//ExpectedWarning: mysql.ERTruncatedWrongValue,
213213
//ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",
214214
},
215215
{
216-
Dialect: "mysql",
216+
Dialect: "mysql",
217217
Query: "SELECT ('A') >= (0)",
218218
Expected: []sql.Row{{true}},
219219
//ExpectedWarningsCount: 1,
220220
//ExpectedWarning: mysql.ERTruncatedWrongValue,
221221
//ExpectedWarningMessageSubstring: "Truncated incorrect double value: A",
222222
},
223223
{
224-
Dialect: "mysql",
224+
Dialect: "mysql",
225225
Query: "SELECT ('A') NOT IN (0)",
226226
Expected: []sql.Row{{false}},
227227
//ExpectedWarningsCount: 1,

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)