INADA Naoki %!s(int64=11) %!d(string=hai) anos
pai
achega
20b75cd3d3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      connection.go

+ 1 - 1
connection.go

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