Ticket #3460: autocommit.diff
File autocommit.diff, 769 bytes (added by , 18 years ago) |
---|
-
django/db/backends/postgresql_psycopg2/base.py
42 42 if settings.DATABASE_PORT: 43 43 conn_string += " port=%s" % settings.DATABASE_PORT 44 44 self.connection = Database.connect(conn_string, **self.options) 45 self.connection.set_isolation_level( 1) # make transactions transparent to all cursors45 self.connection.set_isolation_level(0) # autocommit 46 46 cursor = self.connection.cursor() 47 47 cursor.tzinfo_factory = None 48 48 cursor.execute("SET TIME ZONE %s", [settings.TIME_ZONE])