Problem: The `BEGIN` SQL calls show up in the logs, but there is no way to
see when the transaction is commited or if it is rolled back.
As easy solution would be to log commits and rollbacks as well.
--
Ticket URL: <https://code.djangoproject.com/ticket/31090>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Petter Strandmark):
Patch: https://github.com/django/django/pull/12219
--
Ticket URL: <https://code.djangoproject.com/ticket/31090#comment:1>
* status: new => assigned
* needs_better_patch: 0 => 1
* needs_tests: 0 => 1
* owner: nobody => Petter Strandmark
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/31090#comment:2>
* needs_docs: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/31090#comment:3>
Comment (by felixxm):
Note: `BEGIN` is logged only on SQLite as a workaround to start a
transaction explicitly in autocommit mode, you will not find it in loggers
for other databases.
--
Ticket URL: <https://code.djangoproject.com/ticket/31090#comment:4>
* needs_better_patch: 1 => 0
* needs_tests: 1 => 0
Comment:
Author updated patch
--
Ticket URL: <https://code.djangoproject.com/ticket/31090#comment:5>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/31090#comment:6>
* owner: Petter Strandmark => (none)
* status: assigned => new
--
Ticket URL: <https://code.djangoproject.com/ticket/31090#comment:7>
* owner: (none) => Ilya Bass
* status: new => assigned
Comment:
Discussed w/ Simon while at DjangoCon US 2022 Sprints, will grab this to
try to get this over the line.
--
Ticket URL: <https://code.djangoproject.com/ticket/31090#comment:8>
Comment (by Ilya Bass):
New pull request https://github.com/django/django/pull/16208
--
Ticket URL: <https://code.djangoproject.com/ticket/31090#comment:9>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/31090#comment:10>
* needs_docs: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/31090#comment:11>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/31090#comment:12>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/31090#comment:13>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"798e38c2b9c46ab72e2ee8c33dc822f01b194b1e" 798e38c2]:
{{{
#!CommitTicketReference repository=""
revision="798e38c2b9c46ab72e2ee8c33dc822f01b194b1e"
Fixed #31090 -- Logged transaction management queries.
Thanks to Petter Strandmark for the original idea and Mariusz Felisiak
for advice during the DjangoConUS 2022 Sprint!
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31090#comment:14>