Skip to content

Commit ba48cfd

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

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

connection.go

Lines changed: 1 addition & 5 deletions
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/.
@@ -205,10 +205,6 @@ func (mc *mysqlConn) Exec(query string, args []driver.Value) (driver.Result, err
205205
return nil, e
206206
}
207207

208-
if mc.affectedRows == 0 && mc.insertId == 0 {
209-
return driver.ResultNoRows, e
210-
}
211-
212208
return &mysqlResult{
213209
affectedRows: int64(mc.affectedRows),
214210
insertId: int64(mc.insertId)},

0 commit comments

Comments
 (0)