Comment 23 for bug 899794

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Some minor remarks about this bug:

1. The version of psycopg2 is irrelevant for the occurrence of the bug, however it will cause a minor difference in the error message: older versions (e.g. 2.0) will raise a "TypeError: can't escape non-string object" while more recent version (e.g. 2.4) will raise a "TypeError: can't escape unicode to binary".

2. This bug did not occur in 6.0 because it is caused by the JSON (de)serialization of OpenERP binary values, and the JSON protocol was only introduced in OpenERP 6.1 - nothing else changed between 6.0 and 6.1 in the handling of binaries or the way we use psycopg2.