|
|
@@ -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)},
|