Opened 3 weeks ago

Last modified 3 weeks ago

#37415 assigned Bug

Error in the documentation of django.db.connection.execute_wrapper

Reported by: BestCrazyNoob Owned by: NAYAN SHARMA
Component: Documentation Version: 6.1
Severity: Normal Keywords:
Cc: BestCrazyNoob Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In the page ​Database instrumentation of the documentation, in the documentation of
connection.execute_wrapper :


The parameters sent to the wrappers are:
...
params – a list/tuple of parameter values for the SQL command, or a list/tuple of lists/tuples if the wrapped call is executemany().
...


This is however incorrect: sql queries like BEGIN , SAVEPOINT and RELEASE SAVEPOINT have params set to None instead of an empty tuple. This can be easily verified by running anything wrapped with @transaction.atomic : it will generate a query with params = None .

Change History (2)

comment:1 by NAYAN SHARMA, 3 weeks ago

Has patch: set

comment:2 by NAYAN SHARMA, 3 weeks ago

Owner: set to NAYAN SHARMA
Status: new → assigned
Triage Stage: Unreviewed → Accepted
Note: See TracTickets for help on using tickets.
Back to Top