Re: Bug #814

Поиск
Список
Период
Сортировка
От Barry Lind
Тема Re: Bug #814
Дата
Msg-id 3F62724C.9070400@xythos.com
обсуждение исходный текст
Ответ на Re: Bug #814  (Malcolm Warren <malcolm@villeinitalia.com>)
Ответы Re: Bug #814
Список pgsql-jdbc
Malcolm,

This has been "fixed" in the latest builds of the 7.3 driver.  Download
from jdbc.postgresql.org.

The "fix" was to just report a better error message in this case.  If
you are storing non-ascii data, you are going to need your database to
be running with an encoding that can store that data.  Thus in your
situation as you are reporting below you would need to recreate your
database in latinX or unicode.

thanks,
--Barry

Malcolm Warren wrote:
> I note that this bug was opened in December 2002.
>
> To recap, you get an ArrayIndexOutOfBoundsException at
> org.postgresql.core.Encoding.decodeUTF8 in Encoding.java line 253
> whenever it encounters a character from the extended keyboard.
>
> I have Postgres 7.3.2 with SQL_ASCII (default?) encoding and no locale.
> But a lot of the text in our database is in Italian.
> So programmes crash as soon as they meet any italian accented character
> when using the new JDBC jars.
> I come across the same bug using both the JDBC2 and JDBC3 jars.
>
> Anyone know of plans to deal with this bug? Any information would be
> gratefully received.
>
> Kind regards,
> Malcolm Warren
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
>      joining column's datatypes do not match
>




В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Specification of "/" in the host name (for Unix socket support)
Следующее
От: Barry Lind
Дата:
Сообщение: Re: JDBC Streaming large objects