]> git.ipfire.org Git - thirdparty/postgresql.git/commit
plperl: Skip setting UTF8 flag when in SQL_ASCII encoding
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 9 Jul 2012 21:36:29 +0000 (17:36 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 10 Jul 2012 19:16:59 +0000 (15:16 -0400)
commit7c460f0ba745611f4dadf413daa4ed9059951f92
tree2b40d2c066cf59179a5126e48f0d9877de02e014
parent8fc7b07b64d4f14b1738ce725f23f4903fce18f7
plperl: Skip setting UTF8 flag when in SQL_ASCII encoding

When in SQL_ASCII encoding, strings passed around are not necessarily
UTF8-safe.  We had already fixed this in some places, but it looks like
we missed some.

I had to backpatch Peter Eisentraut's a8b92b60 to 9.1 in order for this
patch to cherry-pick more cleanly.

Patch from Alex Hunsaker, tweaked by Kyotaro HORIGUCHI and myself.

Some desultory cleanup and comment addition by me, during patch review.

Per bug report from Christoph Berg in
20120209102116.GA14429@msgid.df7cb.de
src/pl/plperl/GNUmakefile
src/pl/plperl/Util.xs
src/pl/plperl/expected/plperl.out
src/pl/plperl/expected/plperl_lc.out [new file with mode: 0644]
src/pl/plperl/expected/plperl_lc_1.out [new file with mode: 0644]
src/pl/plperl/plperl_helpers.h
src/pl/plperl/sql/plperl.sql
src/pl/plperl/sql/plperl_lc.sql [new file with mode: 0644]