Re: Very strange Error in Updates

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Very strange Error in Updates
Дата
Msg-id Pine.BSO.4.56.0407150039290.12845@leary.csoft.net
обсуждение исходный текст
Ответ на Very strange Error in Updates  ("Dario V. Fassi" <software@sistemat.com.ar>)
Ответы Re: Very strange Error in Updates  ("Dario V. Fassi" <software@sistemat.com.ar>)
Список pgsql-jdbc

On Thu, 15 Jul 2004, Dario V. Fassi wrote:

> When the parameter fill the full-length of  receiving field and has any
> non common character, the update throw a exception like:
>
> java.sql.SQLException: ERROR:  value too long for type character varying(30)

This is likely an encoding problem.  What is the encoding of the database?
I'm guessing it's SQL_ASCII and you when entering data from java which is
in unicode it takes more than one byte of storage which is represented as
more than one character in an ascii database so it goes over the limit.

Kris Jurka

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

Предыдущее
От: "Dario V. Fassi"
Дата:
Сообщение: Re: Very strange Error in Updates
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: Very strange Error in Updates