Add Unicode support in PL/Python
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 12 Sep 2009 22:13:12 +0000 (22:13 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 12 Sep 2009 22:13:12 +0000 (22:13 +0000)
commit4cc8eafb76b6de4bbb6740caebfe4c4c88a7ae10
tree2270c63dd48b988d98cb0ba3395d2a28d8795373
parent80e7c390ef888bbae81a522acac0a0a33bc32b10
Add Unicode support in PL/Python

PL/Python now accepts Unicode objects where it previously only accepted string
objects (for example, as return value).  Unicode objects are converted to the
PostgreSQL server encoding as necessary.

This change is also necessary for future Python 3 support, which treats all
strings as Unicode objects.

Since this removes the error conditions that the plpython_unicode test file
tested for, the alternative result files are no longer necessary.
src/pl/plpython/expected/README
src/pl/plpython/expected/plpython_trigger.out
src/pl/plpython/expected/plpython_unicode.out
src/pl/plpython/expected/plpython_unicode_2.out [deleted file]
src/pl/plpython/expected/plpython_unicode_3.out [deleted file]
src/pl/plpython/plpython.c
src/pl/plpython/sql/plpython_trigger.sql
src/pl/plpython/sql/plpython_unicode.sql