Skip to content

Commit 90ddecd

Browse files
added missing platform
1 parent 2253e30 commit 90ddecd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Symfony/Component/Lock/Store/DoctrineDbalStore.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,11 @@ private function driverSupportsTableCreationInTransaction(): bool
257257
$platform = $this->conn->getDatabasePlatform();
258258

259259
switch (true) {
260-
case $platform instanceof \Doctrine\DBAL\Platforms\PostgreSQL94Platform:
261260
case $platform instanceof \Doctrine\DBAL\Platforms\PostgreSQLPlatform:
261+
case $platform instanceof \Doctrine\DBAL\Platforms\PostgreSQL94Platform:
262262
case $platform instanceof \Doctrine\DBAL\Platforms\SqlitePlatform:
263263
case $platform instanceof \Doctrine\DBAL\Platforms\SQLServerPlatform:
264+
case $platform instanceof \Doctrine\DBAL\Platforms\SQLServer2012Platform:
264265
return true;
265266
default:
266267
return false;

src/Symfony/Component/Lock/Tests/Store/DoctrineDbalStoreTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,10 @@ public function testCreatesTableInTransaction(string $platform)
136136
public function providePlatforms()
137137
{
138138
yield [\Doctrine\DBAL\Platforms\PostgreSQLPlatform::class];
139+
yield [\Doctrine\DBAL\Platforms\PostgreSQL94Platform::class];
139140
yield [\Doctrine\DBAL\Platforms\SqlitePlatform::class];
140141
yield [\Doctrine\DBAL\Platforms\SQLServerPlatform::class];
142+
yield [\Doctrine\DBAL\Platforms\SQLServer2012Platform::class];
141143
}
142144

143145
public function testTableCreationInTransactionNotSupported()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy