summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-01-01 01:47:58 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-01-01 01:47:58 +0000
commit226a95cb4f4b398bf04a148eb1d56c367238e1c0 (patch)
treec2caff4b2473c2266f5def456883ae092d06868b /lib/sqlalchemy
parent65c618534ff5c6401d1e6f6318e3e4c6b1516204 (diff)
downloadsqlalchemy-226a95cb4f4b398bf04a148eb1d56c367238e1c0.tar.gz
fix to new TypeDecorator
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/types.py8
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)