Ticket #3461: psycopg2.diff
File psycopg2.diff, 1016 bytes (added by , 18 years ago) |
---|
-
django/db/backends/postgresql_psycopg2/base.py
26 26 self.queries = [] 27 27 self.options = kwargs 28 28 29 def cursor(self ):29 def cursor(self, *args, **kwargs): 30 30 from django.conf import settings 31 31 if self.connection is None: 32 32 if settings.DATABASE_NAME == '': … … 43 43 conn_string += " port=%s" % settings.DATABASE_PORT 44 44 self.connection = Database.connect(conn_string, **self.options) 45 45 self.connection.set_isolation_level(1) # make transactions transparent to all cursors 46 cursor = self.connection.cursor( )46 cursor = self.connection.cursor(*args, **kwargs) 47 47 cursor.tzinfo_factory = None 48 48 cursor.execute("SET TIME ZONE %s", [settings.TIME_ZONE]) 49 49 if settings.DEBUG: