Skip to content

Commit dfbec3c

Browse files
committed
- Delete- and Update-Statements now return the number of affected rows
1 parent 5b0695a commit dfbec3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Builder/Internal/DDLRunnable.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public function __construct(DatabaseStatement $query, callable $callbackFn = nul
2323
* @return mixed
2424
*/
2525
public function run(array $params = array()) {
26-
$response = $this->query->execute($params);
26+
$this->query->execute($params);
27+
$response = $this->query->getStatement()->rowCount();
2728
if($this->callbackFn !== null) {
2829
$response = call_user_func($this->callbackFn, $response);
2930
}

0 commit comments

Comments
 (0)