diff options
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r-- | lib/sqlalchemy/types.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/sqlalchemy/types.py b/lib/sqlalchemy/types.py index 83e388c4f..f51f77a2e 100644 --- a/lib/sqlalchemy/types.py +++ b/lib/sqlalchemy/types.py @@ -246,7 +246,9 @@ class TypeDecorator(AbstractType): return impl_processor(self.process_bind_param(value, dialect)) return process else: - return self.process_bind_param + def process(value): + return self.process_bind_param(value, dialect) + return process else: return self.impl.bind_processor(dialect) @@ -258,7 +260,9 @@ class TypeDecorator(AbstractType): return self.process_result_value(impl_processor(value), dialect) return process else: - return self.process_result_value + def process(value): + return self.process_result_value(value, dialect) + return process else: return self.impl.result_processor(dialect) |