From: Oliver Jowett <oliver@opencloud.com>
To: surabhi.ahuja <surabhi.ahuja@iiitb.ac.in>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: date value not geting inserted properly
Date: Wed, 07 Jun 2006 21:30:41 +0900
Message-ID: <4486C6F1.7070408@opencloud.com> (raw)
In-Reply-To: <8626C1B7EB748940BCDD7596134632BE398687@jal.iiitb.ac.in>
References: <8626C1B7EB748940BCDD7596134632BE398687@jal.iiitb.ac.in>
surabhi.ahuja wrote:
> stmt.setObject(i + 1, (tagV.value),
> ((TypeAttrib) (primaryKeyMap_.get(tMap.get(temp)))).dataType);
>
> can u please tell as to what should the dataType be for date, isnt it
> 91- integer?
java.sql.Types.DATE is 91, which should be correct if you're inserting a
bare date (with no time part).
What is the type and value of the "tagV.value" object?
What driver version and server version are you using?
What is the query you are executing?
Can you provide a selfcontained testcase showing the problem? You
haven't really given us enough info to go on here.
-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, surabhi.ahuja@iiitb.ac.in
Subject: Re: date value not geting inserted properly
In-Reply-To: <4486C6F1.7070408@opencloud.com>
References: <8626C1B7EB748940BCDD7596134632BE398687@jal.iiitb.ac.in> <4486C6F1.7070408@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