Re: about function overload,a bug? - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: about function overload,a bug?
Date
Msg-id 4724F4A2.1080601@opencloud.com
Whole thread Raw
In response to about function overload,a bug?  ("cncinfo@126.com" <cncinfo@126.com>)
Responses Re: about function overload,a bug?  ("cncinfo@126.com" <cncinfo@126.com>)
List 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 by date:

Previous
From: Marek Lewczuk
Date:
Subject: Re: AbstractJdbc2Array - another patch
Next
From: "cncinfo@126.com"
Date:
Subject: Re: about function overload,a bug?