- Fix casting of unicode strings in arrays
authorMark Huang <mlhuang@cs.princeton.edu>
Mon, 4 Dec 2006 19:10:47 +0000 (19:10 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Mon, 4 Dec 2006 19:10:47 +0000 (19:10 +0000)
commitea972bb9fb462b9c318f5e68959c10c3bd98ed17
treec2f703bbc7c96ac70232f26a36216e7f9a28bb88
parent3cccae38da1f2bb2e7c3242c119a4ef566f03414
- Fix casting of unicode strings in arrays

From federico on psycopg mailing list:

Il giorno mar, 28/11/2006 alle 15.33 -0500, Mark Huang ha scritto:
>> I've noticed that Unicode strings in PostgreSQL arrays are not cast to
>> Python unicode objects:

You need to register UNICODEARRAY just as you registered UNICODE but,
ouch!, it is not exported! I'll make it exported in next release, right
now you can use one of the internals:

psycopg2.extensions.register_type(psycopg2._psycopg.UNICODEARRAY)
PLC/PostgreSQL.py
psycopg2/psycopg/typecast_builtins.c