ENH Various fixes for PHP 8.1 compatibility

This commit is contained in:
Steve Boyd 2022-04-21 16:15:52 +12:00
parent 2411a83d5d
commit 337c6e583c

View File

@ -67,7 +67,8 @@ class MySQLiConnector extends DBConnector
try { try {
$success = $statement->prepare($sql); $success = $statement->prepare($sql);
} catch (mysqli_sql_exception $e) { } catch (mysqli_sql_exception $e) {
throw new DatabaseException($e->getMessage()); $success = false;
$this->databaseError($e->getMessage(), E_USER_ERROR, $sql);
} }
return $statement; return $statement;
} }