dep: package update
This commit is contained in:
+3
-3
@@ -268,7 +268,7 @@ class PdoStore implements StoreInterface
|
||||
$table->setPrimaryKey([$this->idCol]);
|
||||
|
||||
foreach ($schema->toSql($conn->getDatabasePlatform()) as $sql) {
|
||||
if (method_exists($conn, 'executeStatement')) {
|
||||
if ($conn instanceof Connection && method_exists($conn, 'executeStatement')) {
|
||||
$conn->executeStatement($sql);
|
||||
} else {
|
||||
$conn->exec($sql);
|
||||
@@ -298,7 +298,7 @@ class PdoStore implements StoreInterface
|
||||
throw new \DomainException(sprintf('Creating the lock table is currently not implemented for PDO driver "%s".', $driver));
|
||||
}
|
||||
|
||||
if (method_exists($conn, 'executeStatement')) {
|
||||
if ($conn instanceof Connection && method_exists($conn, 'executeStatement')) {
|
||||
$conn->executeStatement($sql);
|
||||
} else {
|
||||
$conn->exec($sql);
|
||||
@@ -313,7 +313,7 @@ class PdoStore implements StoreInterface
|
||||
$sql = "DELETE FROM $this->table WHERE $this->expirationCol <= {$this->getCurrentTimestampStatement()}";
|
||||
|
||||
$conn = $this->getConnection();
|
||||
if (method_exists($conn, 'executeStatement')) {
|
||||
if ($conn instanceof Connection && method_exists($conn, 'executeStatement')) {
|
||||
$conn->executeStatement($sql);
|
||||
} else {
|
||||
$conn->exec($sql);
|
||||
|
||||
Reference in New Issue
Block a user