Skip to content

Commit

Permalink
fix DibiAdapter v3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
JanTvrdik committed Jan 18, 2024
1 parent d35d328 commit 337049c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Bridges/Dibi/DibiAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ public function query(string $sql): array

public function exec(string $sql): int
{
return $this->conn->nativeQuery($sql)->getRowCount();
$result = $this->conn->nativeQuery($sql);

if (is_int($result)) {
return $result;
}

return $result->getRowCount();
}


Expand Down

0 comments on commit 337049c

Please sign in to comment.