Ticket #4987: postgres_backend.py-idle_in_transaction.diff
| File postgres_backend.py-idle_in_transaction.diff, 672 bytes (added by guillaume.smet@…, 3 years ago) |
|---|
-
postgres_backend.py
old new 145 145 if 'schema' in params: 146 146 self.schema = params['schema'] 147 147 cnx.cursor().execute('SET search_path TO %s', (self.schema,)) 148 cnx.commit(); 148 149 except PGSchemaError: 149 150 cnx.rollback() 150 151 ConnectionWrapper.__init__(self, cnx) … … 173 174 if self.schema: 174 175 try: 175 176 self.cnx.cursor().execute("SET search_path TO %s", (self.schema,)) 177 self.cnx.commit(); 176 178 except PGSchemaError: 177 179 self.cnx.rollback()
