Re: about function overload,a bug?

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: about function overload,a bug?
Дата
Msg-id 4724F4A2.1080601@opencloud.com
обсуждение исходный текст
Ответ на about function overload,a bug?  ("cncinfo@126.com" <cncinfo@126.com>)
Ответы Re: about function overload,a bug?  ("cncinfo@126.com" <cncinfo@126.com>)
Список pgsql-jdbc
cncinfo@126.com wrote:

> It seems "timestamp without time zone" is same as "character varying" in
> jdbc,so jdbc invoke wrong function.

Unfortunately the JDBC driver must pass timestamp parameters without
type data and let the server infer the correct type to use (this is
necessary to have both "timestamp with time zone" and "timestamp without
time zone" operate correctly).

In your case the server is inferring the wrong type for what you want.

An explicit cast in your query may fix it.

-O

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

Предыдущее
От: Marek Lewczuk
Дата:
Сообщение: Re: AbstractJdbc2Array - another patch
Следующее
От: "cncinfo@126.com"
Дата:
Сообщение: Re: about function overload,a bug?