From cbcd80a4c36f59772d62860fdb0cb6a38da63fd2 Mon Sep 17 00:00:00 2001 From: HypeMC Date: Tue, 7 Nov 2023 16:18:53 +0100 Subject: [PATCH] [Cache][Lock] Fix PDO store not creating table + add tests --- Session/Storage/Handler/SessionHandlerFactory.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Session/Storage/Handler/SessionHandlerFactory.php b/Session/Storage/Handler/SessionHandlerFactory.php index 14454d0b8..76e4373f8 100644 --- a/Session/Storage/Handler/SessionHandlerFactory.php +++ b/Session/Storage/Handler/SessionHandlerFactory.php @@ -82,6 +82,7 @@ public static function createHandler($connection): AbstractSessionHandler } $connection = DriverManager::getConnection($params, $config); + // The condition should be removed once support for DBAL <3.3 is dropped $connection = method_exists($connection, 'getNativeConnection') ? $connection->getNativeConnection() : $connection->getWrappedConnection(); // no break;