Catch DatabaseExceptions in MySQL's sequence emulation rather than PDOException, since we're now always wrapping the latter.

8.0.x
Larry Garfield 2012-04-30 23:38:39 -05:00
parent 57fab3b0c2
commit fb620e79b2
1 changed files with 2 additions and 2 deletions

View File

@ -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) {
}
}