Opened 8 years ago
Closed 8 years ago
#27062 closed New feature (fixed)
Add support for for_update for MSSQL
Reported by: | denisenkom | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.10 |
Severity: | Normal | Keywords: | mssql for_update database orm |
Cc: | denisenkom@… | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Currently SQL generator adds FOR UPDATE clause at the end of the query but MSSQL requires it to be after FROM clause. SQL generator should be updated to allow for MSSQL syntax.
Change History (5)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Patch needs improvement: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
Branch needs a rebase.
comment:3 by , 8 years ago
Patch needs improvement: | unset |
---|
comment:4 by , 8 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
Because of this there is no way to add MSSQL support without monkey patching entire as_sql method, see: https://github.com/denisenkom/django-sqlserver/blob/master/sqlserver/compiler.py#L24