Fix Unicode support in PL/Python
Peter Eisentraut <peter_e@gmx.net>
Fix Unicode support in PL/Python Check calls of PyUnicode_AsEncodedString() for NULL return, probably because the encoding name is not known. Add special treatment for SQL_ASCII, which Python definitely does not know. Since using SQL_ASCII produces errors in the regression tests when non-ASCII characters are involved, we have to put back various regression test result variants.
Files
| Path | Change | +/− |
|---|---|---|
| src/pl/plpython/expected/plpython_unicode_2.out | added | +52 −0 |
| src/pl/plpython/expected/plpython_unicode_3.out | added | +52 −0 |
| src/pl/plpython/expected/plpython_unicode_5.out | added | +52 −0 |
| src/pl/plpython/expected/README | modified | +5 −0 |
| src/pl/plpython/plpython.c | modified | +14 −4 |