Browse Source

Remove false "ResultNoRows" errors

Issue #16
Julien Schmidt 13 years ago
parent
commit
d18a8c1171
1 changed files with 1 additions and 5 deletions
  1. 1 5
      statement.go

+ 1 - 5
statement.go

@@ -2,7 +2,7 @@
 //
 // Copyright 2012 Julien Schmidt. All rights reserved.
 // http://www.julienschmidt.com
-// 
+//
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -72,10 +72,6 @@ func (stmt mysqlStmt) Exec(args []driver.Value) (driver.Result, error) {
 		return nil, e
 	}
 
-	if stmt.mc.affectedRows == 0 {
-		return driver.ResultNoRows, nil
-	}
-
 	return mysqlResult{
 			affectedRows: int64(stmt.mc.affectedRows),
 			insertId:     int64(stmt.mc.insertId)},