#9919 closed (fixed)
Raw SQL documentation doesn't mention transaction management
Reported by: | Leo Shklovskii | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
Attempting to do modifying raw SQL with a cursor requires the transaction to be explicitly committed. The documentation at: http://docs.djangoproject.com/en/dev/topics/db/sql/ doesn't mention anything about this.
I've attached a patch that documents this detail and cleaned up some of the style of that page to make it more legible.
Attachments (1)
Change History (7)
by , 16 years ago
Attachment: | raw-sql-docs-r9690.patch added |
---|
comment:1 by , 16 years ago
comment:3 by , 15 years ago
milestone: | → 1.1 |
---|---|
Patch needs improvement: | set |
Resolution: | duplicate |
Status: | closed → reopened |
Triage Stage: | Unreviewed → Accepted |
In the absence of a resolution for #9964, we should add a note on the need to manually dirty transactions if you use raw-sql.
The current patch doesn't do that, though.
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:5 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
It's not the docs that are wrong; it's the code. See #9964.