Catch DatabaseExceptions in MySQL's sequence emulation rather than PDOException, since we're now always wrapping the latter.
parent
57fab3b0c2
commit
fb620e79b2
|
@ -9,10 +9,10 @@ namespace Drupal\Core\Database\Driver\mysql;
|
|||
|
||||
use Drupal\Core\Database\Database;
|
||||
use Drupal\Core\Database\TransactionCommitFailedException;
|
||||
use Drupal\Core\Database\DatabaseException;
|
||||
use Drupal\Core\Database\Connection as DatabaseConnection;
|
||||
|
||||
use PDO;
|
||||
use PDOException;
|
||||
|
||||
/**
|
||||
* @ingroup database
|
||||
|
@ -153,7 +153,7 @@ class Connection extends DatabaseConnection {
|
|||
// errors. There is no problem with completely ignoring errors here: if
|
||||
// these queries fail, the sequence will work just fine, just use a bit
|
||||
// more database storage and memory.
|
||||
catch (PDOException $e) {
|
||||
catch (DatabaseException $e) {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue