]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add missing cache_ok directive to MyEpochType
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 18 Mar 2024 14:22:06 +0000 (10:22 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 18 Mar 2024 14:22:06 +0000 (10:22 -0400)
Change-Id: Ic4da52b02a4ba36d87d73974fe428b91d9d7915c

lib/sqlalchemy/sql/type_api.py

index a56911fb9a1a388a8d3d04f659ff619afd3a9965..9d0b067d47700a3543dc8d78d70afdbbbb0001bd 100644 (file)
@@ -1575,6 +1575,8 @@ class TypeDecorator(SchemaEventTarget, ExternalType, TypeEngine[_T]):
         class MyEpochType(types.TypeDecorator):
             impl = types.Integer
 
+            cache_ok = True
+
             epoch = datetime.date(1970, 1, 1)
 
             def process_bind_param(self, value, dialect):