From: Oliver Jowett <oliver@opencloud.com>
To: cncinfo@126.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: about function overload,a bug?
Date: Mon, 29 Oct 2007 09:44:18 +1300
Message-ID: <4724F4A2.1080601@opencloud.com> (raw)
In-Reply-To: <1193597813.2737.26.camel@happy.letu.com>
References: <1193597813.2737.26.camel@happy.letu.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, cncinfo@126.com
Subject: Re: about function overload,a bug?
In-Reply-To: <4724F4A2.1080601@opencloud.com>
References: <1193597813.2737.26.camel@happy.letu.com> <4724F4A2.1080601@opencloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox