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 145DF52887 for ; Wed, 1 Jun 2005 22:34:04 -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 07031-02 for ; Thu, 2 Jun 2005 01:33:58 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 5C2655280B for ; Wed, 1 Jun 2005 22:33:57 -0300 (ADT) Received: from flood.opencloud.co.nz ([192.168.0.31]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1Ddeav-0005lD-CO; Thu, 02 Jun 2005 13:34:01 +1200 Message-ID: <429E6208.4040001@opencloud.com> Date: Thu, 02 Jun 2005 13:34:00 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Cramer Cc: List Subject: Re: modification required to pass Sun's CTS References: <51F5CF3C-F01E-4BB1-AA80-5AC3718FF2B4@fastcrypt.com> <429E2AB3.7080405@opencloud.com> <3E2F1202-C08A-491E-9C47-392022314CC1@fastcrypt.com> In-Reply-To: <3E2F1202-C08A-491E-9C47-392022314CC1@fastcrypt.com> 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.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/6 X-Sequence-Number: 12968 Dave Cramer wrote: > cstmt = conn.prepareCall("{call Numeric_Proc > (?,?,?)}"); > > msg.setMsg("Register the output parameter"); > cstmt.registerOutParameter > (1,java.sql.Types.NUMERIC,15); > cstmt.registerOutParameter > (2,java.sql.Types.NUMERIC,15); > cstmt.registerOutParameter > (3,java.sql.Types.NUMERIC,15); > > msg.setMsg("execute the procedure"); > cstmt.executeUpdate(); Ok, so that is exactly the case I was talking about, a procedure that doesn't return a value or resultset, but has OUT parameters. We should mask the resultset we get from the backend in this case as it's just an implementation detail of our OUT mechanism. (i.e. executeUpdate() does not complain, executeQuery() does complain, etc) -O