I had some (working) code with a typeadaptor that  used the
process_result_value style. I changed this to use the result_processor
style and returned a calleable and some tests started to fail. It
seems that with the process_result_value form, value is a datetime
object. When using result_processor, value is a unicode string.

pjjH


-    def result_processor(self, dialect):
-        def process(value):
-            if value is None:
-                return None
-            return Date(value)

-        return process
+    def process_result_value(self, value, dialect):
+        if value is None:
+            return None
+        return Date(value)




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to