Skip to content

Commit 148de8d

Browse files
author
Gleb Brozhe
committed
fix for internal/bind/numeric_args.go RewriteQuery function from PR review
2 parents 56ac5fb + 1198ca6 commit 148de8d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/bind/numeric_args.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ func (m NumericArgs) RewriteQuery(sql string, args ...interface{}) (yql string,
5656
)
5757
}
5858
paramIndex := int(p - 1)
59-
if newArgs[paramIndex] == nil {
60-
return "", nil, xerrors.WithStackTrace(ErrInconsistentArgs)
61-
}
6259
buffer.WriteString(newArgs[paramIndex].(table.ParameterOption).Name())
6360
}
6461
}

0 commit comments

Comments
 (0)