Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 31C259FB654 for ; Mon, 18 Jun 2007 10:59:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 52255-05 for ; Mon, 18 Jun 2007 10:58:54 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from ipmail01.adl2.internode.on.net (ipmail01.adl2.internode.on.net [203.16.214.140]) by postgresql.org (Postfix) with ESMTP id D3AF39FB58D for ; Mon, 18 Jun 2007 10:59:00 -0300 (ADT) X-IronPort-AV: E=Sophos;i="4.16,435,1175437800"; d="scan'208";a="144960286" Received: from ppp59-167-16-83.lns2.syd7.internode.on.net (HELO [10.0.1.202]) ([59.167.16.83]) by ipmail01.adl2.internode.on.net with ESMTP; 18 Jun 2007 23:28:57 +0930 In-Reply-To: <1427B806-A828-403C-957B-FCF991BB016B@fastcrypt.com> References: <094DD6D8-B500-479F-B730-0BFCC256A5DE@internode.on.net> <46767EC3.3020505@enterprisedb.com> <5F436992-97AC-4D93-B9C0-05DD6B92885F@internode.on.net> <1427B806-A828-403C-957B-FCF991BB016B@fastcrypt.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: Heikki Linnakangas , pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Christopher Hunt Subject: Re: Literal vs parameterized 'timestamp with time zone' value Date: Mon, 18 Jun 2007 23:58:53 +1000 To: Dave Cramer X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200706/60 X-Sequence-Number: 17122 Thanks! On 18/06/2007, at 11:33 PM, Dave Cramer wrote: > Christopher, > > Use a more recent jar. There is a problem with the spec, and > postgresql. The spec does not have two different timestamps. In > previous versions we bound the type to timestamp without timezone. > In more recent versions we bind it to 'unknown' which allows the > server to decide. > > If this fails then appending ?protocolVersion=2 will work, however > you won't be server side prepared statements.