mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #10281 from creative-commoners/pulls/4/p81fix
ENH Various fixes for PHP 8.1 compatibility
This commit is contained in:
commit
6ced576b2f
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user