X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id BF9AF9DCA82 for ; Thu, 15 Dec 2005 18:19:47 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 85274-09 for ; Thu, 15 Dec 2005 18:19:49 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id B58879DC81B for ; Thu, 15 Dec 2005 18:19:43 -0400 (AST) Received: (qmail 3169 invoked from network); 15 Dec 2005 22:19:40 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 15 Dec 2005 22:19:40 -0000 In-Reply-To: References: <439FFA76.1070706@8hertz.de> <3fccaa690512140838o464dd369y4194a05c4f28d553@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <329C4ADF-A66F-41D0-A9E4-94F198457388@fastcrypt.com> Cc: Andres Olarte , Thomas Frieling , pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: CallableStatements: index starts at 2 Date: Thu, 15 Dec 2005 17:19:43 -0500 To: Kris Jurka X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.032 required=5 tests=[AWL=0.032] X-Spam-Score: 0.032 X-Spam-Level: X-Archive-Number: 200512/65 X-Sequence-Number: 14396 Well, I was waiting for exactly this report before backpatching anything. Dave On 15-Dec-05, at 5:13 PM, Kris Jurka wrote: > > > On Wed, 14 Dec 2005, Dave Cramer wrote: > >> I just checked in a fix for this. It hasn't been well tested on >> all the various servers so please report problems back to me. > > This fix only works on JDK1.4 builds. It doesn't work on 1.2, 1.3, > or 1.5 because you've only modified Jdbc3CallableStatement. This > also indicates the fragility of the adjustIndex parameter. > Unfortunately we can't create an AbstractJdbc2CallableStatement > because we'd need multiple inheritance for Jdbc3CallableStatement > to extend both AbstractJdbc3Statement and AbstractJdbc[2|3] > CallableStatement. > > Also your test case using the function getVoid does not work > against 7.2 servers because the void pseudotype was added in 7.3. > The void type doesn't seem to be important for testing. You should > be able to call a function returing anything and ignore the result. > > Kris Jurka > > ---------------------------(end of > broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq >