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
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