Changeset 44 in tracdarcs


Ignore:
Timestamp:
12/02/06 20:01:19 (6 years ago)
Author:
John Goerzen <jgoerzen@…>
Hash name:
20061202190119-c2a52-01b362a17ee393caa36b50cde68d10d09cf24c5c
Message:

Fix so that it will work right on PostgreSQL
Without this patch, PostgreSQL users will get errors when trying
to install/upgrade tracdarcs. A transaction will be aborted
and without rolling it back, every subsequent operation will fail.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tracdarcs/components.py

    r34 r44  
    6767            return False 
    6868        except: 
     69            db.rollback() 
    6970            return True 
    7071 
     
    7778                c.execute( 'drop table %s' % table_name ) 
    7879            except : 
     80                db.rollback() 
    7981                pass 
    8082 
Note: See TracChangeset for help on using the changeset viewer.