summaryrefslogtreecommitdiff
path: root/src/mailman/database/postgresql.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/database/postgresql.py')
-rw-r--r--src/mailman/database/postgresql.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mailman/database/postgresql.py b/src/mailman/database/postgresql.py
index 6362f999c..e7c40407a 100644
--- a/src/mailman/database/postgresql.py
+++ b/src/mailman/database/postgresql.py
@@ -35,6 +35,10 @@ from mailman.database.base import StormBaseDatabase
class _TemporaryDB:
+ # For the test suite; bool column values.
+ TRUE = 'True'
+ FALSE = 'False'
+
def __init__(self, database):
self.database = database
@@ -43,6 +47,9 @@ class _TemporaryDB:
self.database.store.close()
config.db.store.execute('DROP DATABASE mmtest;')
+ def abort(self):
+ self.database.store.execute('ABORT;')
+
class PostgreSQLDatabase(StormBaseDatabase):