Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YAvBv-0006HX-0R for pgsql-jdbc@arkaria.postgresql.org; Tue, 13 Jan 2015 06:43:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YAvBt-0005Dc-HL for pgsql-jdbc@arkaria.postgresql.org; Tue, 13 Jan 2015 06:43:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YAvBs-0005DV-Kb for pgsql-jdbc@postgresql.org; Tue, 13 Jan 2015 06:43:00 +0000 Received: from mwork.nabble.com ([162.253.133.43]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YAvBo-0000RE-9F for pgsql-jdbc@postgresql.org; Tue, 13 Jan 2015 06:42:59 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id 0924B1056BD9 for ; Mon, 12 Jan 2015 22:42:56 -0800 (PST) Date: Mon, 12 Jan 2015 23:42:54 -0700 (MST) From: Vinayak To: pgsql-jdbc@postgresql.org Message-ID: <1421131374401-5833708.post@n5.nabble.com> In-Reply-To: <1421123270940-5833702.post@n5.nabble.com> References: <1420546864196-5833008.post@n5.nabble.com> <1421061400959-5833623.post@n5.nabble.com> <1421123270940-5833702.post@n5.nabble.com> Subject: Re: Problem with DATE MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.3 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org 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. -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc