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 E224240C19E for ; Sun, 30 Jan 2005 19:10:18 +0000 (GMT) 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 77700-08 for ; Sun, 30 Jan 2005 19:10:06 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 6073340C1AF for ; Sun, 30 Jan 2005 19:08:47 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CvKRB-0002P1-00; Mon, 31 Jan 2005 08:08:45 +1300 Message-ID: <41FD30B9.2040509@opencloud.com> Date: Mon, 31 Jan 2005 08:08:41 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0 (X11/20041228) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: pgsql-jdbc@postgresql.org Subject: Re: Fix for changing parameter types with server prepared statements References: <41F557C8.6030805@opencloud.com> <41F6B5CE.3040107@opencloud.com> <41F6D3EC.5000103@opencloud.com> <41F97168.9050006@opencloud.com> In-Reply-To: X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/295 X-Sequence-Number: 12175 Kris Jurka wrote: > A problem I came across is that it will actually require a reparse on the > second execution above because the prepared statements parameters are > cloned and stored during QueryExecutorImpl.sendParse which is before the > results of the describe statement message can be fed back into the system. > Any ideas on this would be appreciated. Also store the statement itself in the describe queue, and update (in the cloned array attached to the statement) any parameter OIDs that are currently 0 when the ParameterDescription arrives? -O