mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENH Various fixes for PHP 8.1 compatibility
This commit is contained in:
parent
2411a83d5d
commit
337c6e583c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user