Compare commits

..

2 Commits

Author SHA1 Message Date
Guy Sartorelli
6ced576b2f
Merge pull request #10281 from creative-commoners/pulls/4/p81fix
ENH Various fixes for PHP 8.1 compatibility
2022-04-27 10:01:07 +12:00
Steve Boyd
337c6e583c ENH Various fixes for PHP 8.1 compatibility 2022-04-27 09:29:40 +12:00

View File

@ -67,7 +67,8 @@ class MySQLiConnector extends DBConnector
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;
}