From: | Dave Cramer <pg(at)fastcrypt(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Bernd Helmle <mailings(at)oopsware(dot)de>, Steve Singer <ssinger(at)ca(dot)afilias(dot)info>, PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>, pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: [JDBC] JDBC connections to 9.1 |
Date: | 2011-04-18 15:11:26 |
Message-ID: | BANLkTinsx=S5wAz+6UEW0yaOuhPCEWpDAg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-jdbc |
On Mon, Apr 18, 2011 at 10:57 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Bernd Helmle <mailings(at)oopsware(dot)de> writes:
>> If i am reading it correct, it reads "UTF8" from the backend, while
>> expecting "UNICODE" only. Not sure what change has caused this,
>> though.
>
> I am --- when I redid the GUC assign_hook logic a few weeks ago,
> I changed the client_encoding code so that it shows the normalized
> (official) name of the encoding, not whatever random string the client
> sent over. For instance, previous versions:
>
> regression=# set client_encoding = 'UnIcOdE';
> SET
> regression=# show client_encoding ;
> client_encoding
> -----------------
> UnIcOdE
> (1 row)
>
> versus HEAD:
>
> regression=# set client_encoding = 'UnIcOdE';
> SET
> regression=# show client_encoding ;
> client_encoding
> -----------------
> UTF8
> (1 row)
>
> I wasn't aware that JDBC would fail on that. It's pretty annoying that
> it does, but maybe we should grin and bear it, ie revert the change to
> canonicalize the GUC's value?
>
> regards, tom lane
>
Older drivers will fail for sure. We can fix newer drivers, but if we
leave it we will see a slew of bug reports.
The reason the driver does this is to guarantee the client encoding is unicode.
Dave Cramer
dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Grittner | 2011-04-18 15:13:53 | Re: JDBC connections to 9.1 |
Previous Message | Robert Haas | 2011-04-18 15:10:22 | Re: JDBC connections to 9.1 |
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Grittner | 2011-04-18 15:13:53 | Re: JDBC connections to 9.1 |
Previous Message | Robert Haas | 2011-04-18 15:10:22 | Re: JDBC connections to 9.1 |