Skip to content

Commit 20b75cd

Browse files
committed
Fix comment
1 parent 1fd0514 commit 20b75cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connection.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ func (mc *mysqlConn) Exec(query string, args []driver.Value) (driver.Result, err
314314
if !mc.cfg.interpolateParams {
315315
return nil, driver.ErrSkip
316316
}
317-
// try client-side prepare to reduce roundtrip
317+
// try to interpolate the parameters to save extra roundtrips for preparing and closing a statement
318318
prepared, err := mc.interpolateParams(query, args)
319319
if err != nil {
320320
return nil, err

0 commit comments

Comments
 (0)