OSDN Git Service

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)
commit4ab6ebf3f4dc8182556dc23c49ee59e602a78f1c
tree90ef67eaf8d83d4ff9a25ee73c7c3885557df3de
parent9bb342811bf6a93a574a648c5848feedbaaef8f2
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