#3461: DatabaseWrapper should pass through args and kwargs to underlying database adapter -------------------------------------+------------------------------------- Reporter: Jack Moffitt | Owner: Asif <metajack@…> | Saifuddin Auvi Type: Bug | Status: assigned Component: Database layer | Version: master (models, ORM) | Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 1 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Description changed by Asif Saifuddin Auvi:
Old 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. New description: Currently the DatabaseWrapper (at least for the postgresql) 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. -- -- Ticket URL: <https://code.djangoproject.com/ticket/3461#comment:27> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/091.60efd4f9caab8dc5ab7ed346cf55f9fb%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.