diff --git a/src/mailman/database/types.py b/src/mailman/database/types.py index 1913a0a..4e97bf6 100644 --- a/src/mailman/database/types.py +++ b/src/mailman/database/types.py @@ -34,6 +34,7 @@ class Enum(TypeDecorator): converts it on-the-fly. """ impl = Integer + cache_ok = False def __init__(self, enum, *args, **kw): super().__init__(*args, **kw) @@ -59,6 +60,7 @@ class UUID(TypeDecorator): """ impl = CHAR + cache_ok = False def load_dialect_impl(self, dialect): if dialect.name == 'postgresql': @@ -93,6 +95,7 @@ class SAUnicode(TypeDecorator): type and it can still be used if needed in the codebase. """ impl = Unicode + cache_ok = False @compiles(SAUnicode) @@ -113,6 +116,7 @@ class SAUnicodeLarge(TypeDecorator): This is double size of SAUnicode defined above. """ impl = Unicode + cache_ok = False @compiles(SAUnicodeLarge, 'mysql') @@ -139,6 +143,7 @@ class SAUnicodeXL(TypeDecorator): See https://docs.sqlalchemy.org/en/latest/dialects/mysql.html#index-length """ impl = Unicode + cache_ok = False @compiles(SAUnicodeXL, 'mysql') -- 2.27.0