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 E16C052816 for ; Thu, 2 Jun 2005 08:18:43 -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 54172-04 for ; Thu, 2 Jun 2005 11:18:34 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 75C8452802 for ; Thu, 2 Jun 2005 08:18:33 -0300 (ADT) Received: (qmail 9676 invoked from network); 2 Jun 2005 11:16:52 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (64.7.143.116) by net2.micro-automation.com with SMTP; 2 Jun 2005 11:16:52 -0000 In-Reply-To: <429E6208.4040001@opencloud.com> References: <51F5CF3C-F01E-4BB1-AA80-5AC3718FF2B4@fastcrypt.com> <429E2AB3.7080405@opencloud.com> <3E2F1202-C08A-491E-9C47-392022314CC1@fastcrypt.com> <429E6208.4040001@opencloud.com> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: List Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: modification required to pass Sun's CTS Date: Thu, 2 Jun 2005 07:18:35 -0400 To: Oliver Jowett X-Mailer: Apple Mail (2.730) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/8 X-Sequence-Number: 12970 Oliver, OK, so if I understand this correctly, we allow the OUT parameter result set if it is a callablestatement ? I don't think we can actually return two resultsets ie one for the out parameters, and yet another if the function returns a resultset. I don't believe the backend has this facility. On 1-Jun-05, at 9:34 PM, Oliver Jowett wrote: > 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 > > ---------------------------(end of > broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to > majordomo@postgresql.org) > >