Skip to content

Commit c452caa

Browse files
authored
Merge pull request #334 from MatthiasKuehneEllerhold/0.12.3-fix-limit1FOR_UPDATE
[0.x] DoctrineDriver: Fix "LIMIT 1FOR UPDATE"
2 parents 01fcfad + b0d3efa commit c452caa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bernard/Driver/DoctrineDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ protected function doPopMessage($queueName)
122122
{
123123
$query = 'SELECT id, message FROM bernard_messages
124124
WHERE queue = :queue AND visible = :visible
125-
ORDER BY sentAt, id LIMIT 1' . $this->connection->getDatabasePlatform()->getForUpdateSql();
125+
ORDER BY sentAt, id LIMIT 1 ' . $this->connection->getDatabasePlatform()->getForUpdateSql();
126126

127127
list($id, $message) = $this->connection->fetchArray($query, array(
128128
'queue' => $queueName,

0 commit comments

Comments
 (0)