From 3ecb13338d36f7f4bccb609bdb2d54ff11359f8f Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 25 Jul 2012 14:20:06 -0400 Subject: A few more tweaks to get PostgreSQL working. - store.rollback() is better than store.execute('ABORT;') - We need to do a commit after the migrations are loaded. --- src/mailman/database/postgresql.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/mailman/database/postgresql.py') diff --git a/src/mailman/database/postgresql.py b/src/mailman/database/postgresql.py index 1d1abca9e..4200ae4fe 100644 --- a/src/mailman/database/postgresql.py +++ b/src/mailman/database/postgresql.py @@ -43,13 +43,10 @@ class _TestDB: self.database = database def cleanup(self): - self.database.store.execute('ABORT;') + self.database.store.rollback() self.database.store.close() config.db.store.execute('DROP DATABASE mmtest;') - def abort(self): - self.database.store.execute('ABORT;') - class PostgreSQLDatabase(StormBaseDatabase): -- cgit v1.2.3-70-g09d2