mirror of https://github.com/celery/kombu.git
#472 : Fix oracle exception "ORA-00907: missing right parenthesis" due to select_for_update in inner query
This commit is contained in:
parent
d1decb5033
commit
f625dc5168
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue