aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/sql')
-rw-r--r--src/database/sql/convert.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database/sql/convert.go b/src/database/sql/convert.go
index b291c1557c..dac3f246ae 100644
--- a/src/database/sql/convert.go
+++ b/src/database/sql/convert.go
@@ -127,7 +127,7 @@ func driverArgsConnLocked(ci driver.Conn, ds *driverStmt, args []any) ([]driver.
// to the column converter.
nvc, ok := si.(driver.NamedValueChecker)
if !ok {
- nvc, ok = ci.(driver.NamedValueChecker)
+ nvc, _ = ci.(driver.NamedValueChecker)
}
cci, ok := si.(driver.ColumnConverter)
if ok {
@@ -136,7 +136,7 @@ func driverArgsConnLocked(ci driver.Conn, ds *driverStmt, args []any) ([]driver.
// Loop through all the arguments, checking each one.
// If no error is returned simply increment the index
- // and continue. However if driver.ErrRemoveArgument
+ // and continue. However, if driver.ErrRemoveArgument
// is returned the argument is not included in the query
// argument list.
var err error