diff options
| author | Abhilash Raj | 2014-09-25 18:36:24 +0530 |
|---|---|---|
| committer | Abhilash Raj | 2014-09-25 18:36:24 +0530 |
| commit | 95fc64b4894e5985bb8d0e5e944b2cda38c9a58c (patch) | |
| tree | 697f18eb33eddc8a16e2b09f4b4be4aaf0cf0dbe /src/mailman/database/types.py | |
| parent | f2c619de76bd1614a6609f1a61e34ecf8a4344fc (diff) | |
| download | mailman-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.py | 3 |
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)) |
