Re: [sqlalchemy] Combined column_expression + process_result_value for custom/decorated type not working?

2015-12-21 Thread Mike Bayer
On 12/21/2015 08:06 AM, Bernardo wrote: > Hi, > > I'm trying to use a custom BYTEA-based type on PostgreSQL (9.2) on > SQLAlchemy 1.0.9., e.g. > > | > class MySpecialBytea(types.TypeDecorator): > impl = BYTEA > > def process_result_value(self, value, dialect): > print

Re: [sqlalchemy] Combined column_expression + process_result_value for custom/decorated type not working?

2015-12-21 Thread Bernardo
Aha, that did the trick! Somehow I'd missed that requirement of specifying the type... Anyway, thanks a lot for the quick reply! :) On Monday, 21 December 2015 16:48:03 UTC, Michael Bayer wrote: > > > > try having the SQL expression itself also be of type MySpecialByteA: > > return