#37415 new Bug

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

Reported by: BestCrazyNoob Owned by:
Component: Documentation Version: 6.1
Severity: Normal Keywords:
Cc: BestCrazyNoob Triage Stage: Unreviewed
Has patch: no 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 (0)

Note: See TracTickets for help on using tickets.
Back to Top