#472 : Fix oracle exception "ORA-00907: missing right parenthesis" due to select_for_update in inner query

This commit is contained in:
Deepak N 2015-06-13 12:15:33 +05:30
parent d1decb5033
commit f625dc5168
1 changed files with 2 additions and 0 deletions

View File

@ -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: