Skip to content

Commit 589314c

Browse files
committed
Implement NamedValueChecker for mysqlConn
1 parent fade210 commit 589314c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

connection.go

+5
Original file line numberDiff line numberDiff line change
@@ -459,3 +459,8 @@ func (mc *mysqlConn) finish() {
459459
case <-mc.closech:
460460
}
461461
}
462+
463+
func (mc *mysqlConn) CheckNamedValue(nv *driver.NamedValue) (err error) {
464+
nv.Value, err = converter{}.ConvertValue(nv.Value)
465+
return
466+
}

0 commit comments

Comments
 (0)