浏览代码

Fix comment

INADA Naoki 11 年之前
父节点
当前提交
20b75cd3d3
共有 1 个文件被更改,包括 1 次插入1 次删除
  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