X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=psycopg2%2Fpsycopg%2Ftypecast_builtins.c;fp=psycopg2%2Fpsycopg%2Ftypecast_builtins.c;h=8532b1f506bafe91c709b218dd5ea0ea4c6ac558;hb=f16827bc7fb391bc1ca7faa67fc5de5e273285fe;hp=0fc109d8d48819d1cc2d0d39712c2f79b8b44e28;hpb=e5bdc26e1423689c0ab3204931335787737946ea;p=plcapi.git diff --git a/psycopg2/psycopg/typecast_builtins.c b/psycopg2/psycopg/typecast_builtins.c index 0fc109d..8532b1f 100644 --- a/psycopg2/psycopg/typecast_builtins.c +++ b/psycopg2/psycopg/typecast_builtins.c @@ -34,7 +34,9 @@ typecastObject_initlist typecast_builtins[] = { {"FLOAT", typecast_FLOAT_types, typecast_FLOAT_cast, NULL}, {"DECIMAL", typecast_DECIMAL_types, typecast_DECIMAL_cast, NULL}, {"UNICODE", typecast_UNICODE_types, typecast_UNICODE_cast, NULL}, - {"STRING", typecast_STRING_types, typecast_STRING_cast, NULL}, + /* XXX Unicode array elements are always cast to regular Python strings */ + /* {"STRING", typecast_STRING_types, typecast_STRING_cast, NULL}, */ + {"STRING", typecast_STRING_types, typecast_UNICODE_cast, NULL}, {"BOOLEAN", typecast_BOOLEAN_types, typecast_BOOLEAN_cast, NULL}, {"DATETIME", typecast_DATETIME_types, typecast_DATETIME_cast, NULL}, {"TIME", typecast_TIME_types, typecast_TIME_cast, NULL},