Explorar el Código

Merge pull request #74 from go-sql-driver/typo

add missing brace in Errorf
Julien Schmidt hace 12 años
padre
commit
5f911400e8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packets.go

+ 1 - 1
packets.go

@@ -699,7 +699,7 @@ func (stmt *mysqlStmt) writeCommandLongData(paramID int, arg []byte) (err error)
 func (stmt *mysqlStmt) writeExecutePacket(args []driver.Value) error {
 	if len(args) != stmt.paramCount {
 		return fmt.Errorf(
-			"Arguments count mismatch (Got: %d Has: %d",
+			"Arguments count mismatch (Got: %d Has: %d)",
 			len(args),
 			stmt.paramCount)
 	}