Opened 18 years ago

Last modified 4 years ago

#3461 assigned

DatabaseWrapper should pass through args and kwargs to underlying database adapter — at Initial Version

Reported by: Jack Moffitt <metajack@…> Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: metajack@…, Ramiro Morales, manel.clos@… Triage Stage: Accepted
Has patch: yes Needs documentation: yes
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

Currently the DatabaseWrapper (at least for the postgresql_psycopg2end) does not pass args and kwargs for cursor() calls to the underlying database adapter. This makes it impossible to use the adapter fully at the low level. For example, to use dict cursors in psycopg2 you have to pass a different cursor factory via the cursor_factory keyword argument to cursor(). The attached patch passes through args and kwargs for cursor() calls.

Change History (1)

by Jack Moffitt <metajack@…>, 18 years ago

Attachment: psycopg2.diff added

pass through args and kwargs for calls to cursor()

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