Re: Problem with DATE - Mailing list pgsql-jdbc

From Vinayak
Subject Re: Problem with DATE
Date
Msg-id 1421131374401-5833708.post@n5.nabble.com
Whole thread Raw
In response to Re: Problem with DATE  (Vinayak <vinpokale@gmail.com>)
Responses Re: Problem with DATE
List pgsql-jdbc
Hi,

I have checked the below description in one post:
If the timestamp parameter is given, the jdbc does not know if it is to be
used timestamp or timestamptz. The jdbc driver passes it to the server as an
unknown data type letting the server figure out what to do with it.
Example:
timestampcol = ? or if you're inserting into a timestamp field so the server
can determine the datatype of parameter being used at, in this case since
its just being sent back to the user the server cannot determine the data
type.
so we need to typecast it.
"SELECT ?::timestamp"

Is the same problem for date type also?




-----
Regards,
Vinayak,

--
View this message in context: http://postgresql.nabble.com/Problem-with-DATE-tp5833008p5833708.html
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.


pgsql-jdbc by date:

Previous
From: Vinayak
Date:
Subject: Re: Problem with DATE
Next
From: Dave Cramer
Date:
Subject: Re: Problem with DATE