Skip to content

Commit 33420de

Browse files
committed
minor symfony#45966 Add tests to messenger connection get for OraclePlatform (rjd22)
This PR was merged into the 4.4 branch. Discussion ---------- Add tests to messenger connection get for OraclePlatform | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | License | MIT Add tests for Oracle for code added in symfony#45714 Commits ------- 6d5887c Add tests to messenger connection get for OraclePlatform
2 parents 81c9e39 + 6d5887c commit 33420de

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Symfony/Component/Messenger/Tests/Transport/Doctrine/ConnectionTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Doctrine\DBAL\Exception;
2020
use Doctrine\DBAL\Platforms\AbstractPlatform;
2121
use Doctrine\DBAL\Platforms\MySQL57Platform;
22+
use Doctrine\DBAL\Platforms\OraclePlatform;
2223
use Doctrine\DBAL\Platforms\SQLServer2012Platform;
2324
use Doctrine\DBAL\Query\QueryBuilder;
2425
use Doctrine\DBAL\Result;
@@ -405,5 +406,10 @@ public function providePlatformSql(): iterable
405406
new SQLServer2012Platform(),
406407
'SELECT m.* FROM messenger_messages m WITH (UPDLOCK, ROWLOCK) WHERE (m.delivered_at is null OR m.delivered_at < ?) AND (m.available_at <= ?) AND (m.queue_name = ?) ORDER BY available_at ASC OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY ',
407408
];
409+
410+
yield 'Oracle' => [
411+
new OraclePlatform(),
412+
'SELECT w.* FROM messenger_messages w WHERE w.id IN(SELECT a.id FROM (SELECT m.* FROM messenger_messages m WHERE (m.delivered_at is null OR m.delivered_at < ?) AND (m.available_at <= ?) AND (m.queue_name = ?) ORDER BY available_at ASC) a WHERE ROWNUM <= 1) FOR UPDATE',
413+
];
408414
}
409415
}

0 commit comments

Comments
 (0)