summaryrefslogtreecommitdiff
path: root/src/mailman/database/types.py
diff options
context:
space:
mode:
authorAbhilash Raj2014-09-25 18:36:24 +0530
committerAbhilash Raj2014-09-25 18:36:24 +0530
commit95fc64b4894e5985bb8d0e5e944b2cda38c9a58c (patch)
tree697f18eb33eddc8a16e2b09f4b4be4aaf0cf0dbe /src/mailman/database/types.py
parentf2c619de76bd1614a6609f1a61e34ecf8a4344fc (diff)
downloadmailman-95fc64b4894e5985bb8d0e5e944b2cda38c9a58c.tar.gz
mailman-95fc64b4894e5985bb8d0e5e944b2cda38c9a58c.tar.zst
mailman-95fc64b4894e5985bb8d0e5e944b2cda38c9a58c.zip
Diffstat (limited to 'src/mailman/database/types.py')
-rw-r--r--src/mailman/database/types.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/database/types.py b/src/mailman/database/types.py
index 641e065ba..eec6df6d5 100644
--- a/src/mailman/database/types.py
+++ b/src/mailman/database/types.py
@@ -30,6 +30,7 @@ import uuid
from sqlalchemy import Integer
from sqlalchemy.types import TypeDecorator, CHAR
+from sqlalchemy.dialects import postgresql
@@ -68,7 +69,7 @@ class UUID(TypeDecorator):
def load_dialect_impl(self, dialect):
if dialect.name == 'postgresql':
- return dialect.type_descriptor(UUID())
+ return dialect.type_descriptor(postgresql.UUID())
else:
return dialect.type_descriptor(CHAR(32))