Comment 1 for bug 691752

Revision history for this message
James Henstridge (jamesh) wrote :

This looks like it is related to bug 585704.

UUIDVariable.parse_get() converts the value to a byte string, which then gets wrapped in a psycopg2.Binary(), which with modern versions of psycopg2 interpolate with a bytea cast. The code should be returning a unicode string instead, since it is a textual representation of the UUID.

The fact that I didn't pick this up when fixing the other related issues would indicate that the test coverage is lacking.