From f625dc5168eaf4c8066953efed939ef43163b351 Mon Sep 17 00:00:00 2001 From: Deepak N Date: Sat, 13 Jun 2015 12:15:33 +0530 Subject: [PATCH] #472 : Fix oracle exception "ORA-00907: missing right parenthesis" due to select_for_update in inner query --- kombu/transport/django/managers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kombu/transport/django/managers.py b/kombu/transport/django/managers.py index 8e816315..d41f5d91 100644 --- a/kombu/transport/django/managers.py +++ b/kombu/transport/django/managers.py @@ -53,6 +53,8 @@ class QueueManager(models.Manager): def select_for_update(qs): + if connection.vendor == 'oracle': + return qs try: return qs.select_for_update() except AttributeError: