Skip to content

Commit 1298cc3

Browse files
committed
Merge branch 'azure-1.11' of https://github.com/guifran001/django-pyodbc into guifran001-azure-1.11
2 parents 09e4966 + c94ae7b commit 1298cc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql_server/pyodbc/operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def for_update_sql(self, nowait=False, skip_locked=False):
226226
Returns the FOR UPDATE SQL clause to lock rows for an update operation.
227227
"""
228228
if skip_locked:
229-
return 'WITH (NOLOCK)'
229+
return 'WITH (ROWLOCK, UPDLOCK, READPAST)'
230230
elif nowait:
231231
return 'WITH (NOWAIT, ROWLOCK, UPDLOCK)'
232232
else:

0 commit comments

Comments
 (0)