Skip to content

Commit cb42274

Browse files
author
Ian Jenkins
committed
Use Query Builder for better support across platforms.
Not all drivers supported FOR UPDATE queries so this changes changes the raw SQL to use the query builder thus allowing DBAL to construct hte appropriate query per platform. It then grabs the SQL and appends the read lock SQL but grabs the SQL part from the correct platform thus as to not break portability.
1 parent 26843ba commit cb42274

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RedisConsumer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public function receive($timeout = 0)
4848
$timeout = (int) ($timeout / 1000);
4949
if (empty($timeout)) {
5050
// Caused by
51-
// Predis\Response\ServerException: ERR timeout is not an integer or out of range
52-
// /mqdev/vendor/predis/predis/src/Client.php:370
51+
// Predis\Response\ServerException: ERR timeout is not an integer or out of range
52+
// /mqdev/vendor/predis/predis/src/Client.php:370
5353

5454
return $this->receiveNoWait();
5555
}

0 commit comments

Comments
 (0)