Skip to content

Commit 3675fc8

Browse files
committed
fix switch syntax
1 parent 9f7b38e commit 3675fc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/expression/function/conv.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,14 @@ func convertFromBase(ctx *sql.Context, nVal string, fromBase interface{}) interf
152152

153153
// Handle sign
154154
negative := false
155-
switch case nVal[0] {
155+
switch nVal[0] {
156156
case '-':
157157
if len(nVal) == 1 {
158158
return uint64(0)
159159
}
160160
negative = true
161161
nVal = nVal[1:]
162-
case nVal[0] == '+':
162+
case '+':
163163
if len(nVal) == 1 {
164164
return uint64(0)
165165
}

0 commit comments

Comments
 (0)