Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 751f0f1

Browse filesBrowse files
added missing platform
1 parent 5e2d494 commit 751f0f1
Copy full SHA for 751f0f1

File tree

2 files changed

+4
-1
lines changed
Filter options

2 files changed

+4
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Store/DoctrineDbalStore.php
+2-1Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Tests/Store/DoctrineDbalStoreTest.php
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.