Skip to content

Commit 7e87e01

Browse files
author
rkr
committed
- Fixed a bug where a UPDATE-Method did not report the changed row count
1 parent bfc226e commit 7e87e01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Databases/MySQL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function prepare($query) {
8888
* @return int
8989
*/
9090
public function exec($query, array $params = array()) {
91-
$this->exceptionHandler(function () use ($query, $params) {
91+
return $this->exceptionHandler(function () use ($query, $params) {
9292
$stmt = $this->pdo->prepare($query);
9393
$timer = microtime(true);
9494
$stmt->execute($params);

0 commit comments

Comments
 (0)