Re: BIGINT <-> java.lang.String auto cast

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: BIGINT <-> java.lang.String auto cast
Дата
Msg-id 42955D8A.4090303@opencloud.com
обсуждение исходный текст
Ответ на Re: BIGINT <-> java.lang.String auto cast  ("Sergey A. Sokolov" <abac@xtech.ru>)
Список pgsql-jdbc
Sergey A. Sokolov wrote:

> I think there must be support for String as input and output parameters for
> the most of Postgres datatypes (numeric, date,..). Just my humble opinion.

You need to talk to the backend developers; this is just the way that
the backend's default implicit casts are set up. The driver change is
that we are actually passing the type information provided at the JDBC
level (e.g. "This parameter is a Java long because I called setLong()")
down to the backend, rather than going via a stringizing step which
loses that information. Why would you want to throw this type
information away?

BTW, my reading of the JDBC spec says nothing about implicit type
conversion on setString being required.

-O

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: BIGINT <-> java.lang.String auto cast
Следующее
От: Giuseppe Sacco
Дата:
Сообщение: Re: DatabaseMetaData.getExtraNameCharacters