]> granicus.if.org Git - postgresql/commit
Refrain from canonicalizing a client_encoding setting of "UNICODE".
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 19 Apr 2011 16:17:13 +0000 (12:17 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 19 Apr 2011 16:25:13 +0000 (12:25 -0400)
commit390cf3209b718382c0ec9793b714422189e9b68b
tree20f9781c01c871be718b129a20d96a3565eee886
parentca5a75fbaed63f41c6e52e5d4b35470080356bdf
Refrain from canonicalizing a client_encoding setting of "UNICODE".

While "UTF8" is the correct name for this encoding, existing JDBC drivers
expect that if they send "UNICODE" it will read back the same way; they
fail with an opaque "Protocol error" complaint if not.  This will be fixed
in the 9.1 drivers, but until older drivers are no longer in use in the
wild, we'd better leave "UNICODE" alone.  Continue to canonicalize all
other inputs.  Per report from Steve Singer and subsequent discussion.
src/backend/commands/variable.c