INADA Naoki 11 anos atrás
pai
commit
20b75cd3d3
1 arquivos alterados com 1 adições e 1 exclusões
  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