Am 10.12.2015 um 07:25 schrieb D'Arcy J.M. Cain:
It should also handle the get method so that we don't need the unescape.

Done in r664.

The methods now encode incoming bytes to bytea to bytes and decode outcoming bytea to bytes automatically.

Note that this is currently done on the DB wrapper class level. We could also do this on the lowest level in the C module. To make this work, we would need to always use PQexecParams instead of PQexec, and we would need to specify incoming bytea columns as binary in its paramFormats array and specify their length in its paramLengths array. Currently we use PQexec for queries without parameters, which always outputs in text format only, and we don't don't set the paramLengths and paramFormats arrays, so we are restricted to text (escaped) format on input and output on the level of the C module.

-- Christoph
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to