Edgewall Software

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  
    145145            if 'schema' in params: 
    146146                self.schema = params['schema'] 
    147147                cnx.cursor().execute('SET search_path TO %s', (self.schema,)) 
     148                cnx.commit(); 
    148149        except PGSchemaError: 
    149150            cnx.rollback() 
    150151        ConnectionWrapper.__init__(self, cnx) 
     
    173174        if self.schema: 
    174175            try: 
    175176                self.cnx.cursor().execute("SET search_path TO %s", (self.schema,)) 
     177                self.cnx.commit(); 
    176178            except PGSchemaError: 
    177179                self.cnx.rollback()