summaryrefslogtreecommitdiff
path: root/src/mailman/database/postgresql.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-07-25 13:35:53 -0400
committerBarry Warsaw2012-07-25 13:35:53 -0400
commitce410fe79601009220e850ad07b6931d29918376 (patch)
tree12ee62a69bc3bede2d856cb4b6815738e35011bb /src/mailman/database/postgresql.py
parent762a4cc0838618e549e0562df96cad361f8cde5a (diff)
downloadmailman-ce410fe79601009220e850ad07b6931d29918376.tar.gz
mailman-ce410fe79601009220e850ad07b6931d29918376.tar.zst
mailman-ce410fe79601009220e850ad07b6931d29918376.zip
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):