Comment 5 for bug 670906

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

For what it is worth, you should be using unicode strings if you are matching against text columns. Storm treats bye strings as binary data and wraps them in psycopg2.Binary() when passing them to psycopg2. If you are using byte strings to represent text, then that is an error in your code.

It was easy to get this wrong with previous versions of psycopg2 though, since it formatting Binary() objects as text strings in the queries previously.