Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPArt-0007Z6-LA for pgsql-jdbc@arkaria.postgresql.org; Tue, 11 Aug 2015 14:49:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZPArt-0000Ly-36 for pgsql-jdbc@arkaria.postgresql.org; Tue, 11 Aug 2015 14:49:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZPArs-0000Ln-Jj for pgsql-jdbc@postgresql.org; Tue, 11 Aug 2015 14:49:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZPArq-0004Gv-EL for pgsql-jdbc@postgresql.org; Tue, 11 Aug 2015 14:49:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t7BEnRe7020119; Tue, 11 Aug 2015 10:49:27 -0400 From: Tom Lane To: Dave Cramer cc: Christopher BROWN , List Subject: Re: PreparedStatement.setDate() behavior with OVERLAPS In-reply-to: References: <9152.1439301688@sss.pgh.pa.us> Comments: In-reply-to Dave Cramer message dated "Tue, 11 Aug 2015 10:38:17 -0400" Date: Tue, 11 Aug 2015 10:49:27 -0400 Message-ID: <20118.1439304567@sss.pgh.pa.us> X-Pg-Spam-Score: -2.1 (--) 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 It strikes me that maybe the root problem is that Christopher is doing things in such an order that the server is asked to parse the SQL string before the setDate() is done. Don't know enough details about JDBC to translate that idea into code, though. regards, tom lane -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc