Skip to content

Commit

Permalink
Merge branch '5' into 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 14, 2025
2 parents dd6d7d8 + 1fa66f3 commit 83e8cbe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ORM/Connect/MySQLiConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,12 @@ public function preparedQuery($sql, $parameters, $errorLevel = E_USER_ERROR)
}

// Safely execute the statement
$statement->execute();
try {
$statement->execute();
} catch (mysqli_sql_exception $e) {
$success = false;
$this->databaseError($e->getMessage(), E_USER_ERROR, $sql, $parameters);
}
}

if (!$success || $statement->error) {
Expand Down

0 comments on commit 83e8cbe

Please sign in to comment.