Dan McDonald schrieb:
I have attached a python script which demonstrates this bug, and a patch that fixes this. I am happy to rework the patch if I'm not doing things the right way.
Thanks for the suggestion. I've just commited a similar fix (using the escape_bytea method of the connection instead of the module function). Your patch only covers incoming binary strings. To make this more symmetric, my fix also unescape outgoing binary strings.
There is one small issue: The E'xyz' notation works only with PG >= 8.1, but PyGreSQL 4.0 wants to be backward compatible to PG 7.4. Not sure whether we should care about this.
-- Christoph _______________________________________________ PyGreSQL mailing list [email protected] http://mailman.vex.net/mailman/listinfo/pygresql
