Skip to content

Commit d18a8c1

Browse files
committed
Remove false "ResultNoRows" errors
Issue #16
1 parent ba48cfd commit d18a8c1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: statement.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// Copyright 2012 Julien Schmidt. All rights reserved.
44
// http://www.julienschmidt.com
5-
//
5+
//
66
// This Source Code Form is subject to the terms of the Mozilla Public
77
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
88
// 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) {
7272
return nil, e
7373
}
7474

75-
if stmt.mc.affectedRows == 0 {
76-
return driver.ResultNoRows, nil
77-
}
78-
7975
return mysqlResult{
8076
affectedRows: int64(stmt.mc.affectedRows),
8177
insertId: int64(stmt.mc.insertId)},

0 commit comments

Comments
 (0)