X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A099AD1B1B7 for ; Fri, 18 Jun 2004 21:19:56 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 78424-10 for ; Sat, 19 Jun 2004 00:19:55 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 87A31D1B1B4 for ; Fri, 18 Jun 2004 21:19:51 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BbTaJ-0005do-00; Sat, 19 Jun 2004 12:19:51 +1200 Message-ID: <40D386F7.3040401@opencloud.com> Date: Sat, 19 Jun 2004 12:21:11 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pg@fastcrypt.com Cc: "pgsql-jdbc@postgresql.org" Subject: Re: proposal for CallableStatements to handle multiple out References: <1087582419.15586.173.camel@localhost.localdomain> <40D37653.8010302@opencloud.com> <1087602030.15607.190.camel@localhost.localdomain> In-Reply-To: <1087602030.15607.190.camel@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200406/108 X-Sequence-Number: 10310 Dave Cramer wrote: > See Kris's addition. > > At this point however I've done some work and realized that most of the > parsing, binding and rewriting of the queries will need to be > encapsulated in two classes, one for regular statements, and one for > callable statements. This will allow me to totally encapsulate the logic > for this inside the CallableStatement implementations, instead of > mucking up the current AbstractJdbc1Statement code. You might want to look at my pending patch first -- I've overhauled modifyJdbcCall and added a method that translates between user-provided parameter indexes and actual query parameter indexes that sounds like it'd be useful for this case. -O