Skip to content

Commit

Permalink
ENH Various fixes for PHP 8.1 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Apr 26, 2022
1 parent 2411a83 commit 337c6e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ORM/Connect/MySQLiConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public function prepareStatement($sql, &$success)
try {
$success = $statement->prepare($sql);
} catch (mysqli_sql_exception $e) {
throw new DatabaseException($e->getMessage());
$success = false;
$this->databaseError($e->getMessage(), E_USER_ERROR, $sql);
}
return $statement;
}
Expand Down

0 comments on commit 337c6e5

Please sign in to comment.