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 64C3AD1B1CF for ; Fri, 18 Jun 2004 15:13:47 -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 13179-10 for ; Fri, 18 Jun 2004 18:13:44 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 37825D1B169 for ; Fri, 18 Jun 2004 15:13:42 -0300 (ADT) Received: (qmail 23268 invoked from network); 18 Jun 2004 18:13:40 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 18 Jun 2004 18:13:40 -0000 Subject: proposal for CallableStatements to handle multiple out parms From: Dave Cramer Reply-To: pg@fastcrypt.com To: "pgsql-jdbc@postgresql.org" Content-Type: text/plain Organization: Cramer Consulting Message-Id: <1087582419.15586.173.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 18 Jun 2004 14:13:39 -0400 Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests=TO_ADDRESS_EQ_REAL X-Spam-Level: X-Archive-Number: 200406/98 X-Sequence-Number: 10300 I'm in the process of writing a patch to get the driver to handle multiple out parms. One mechanism is to create a composite type and a function such as: create type Numeric_Proc_RetType as(it1 numeric(30,15),it2 numeric(30,15),it3 numeric(30,15));"); create function Numeric_Proc(numeric(30,15),numeric(30,15), numeric(30,15)) returns Numeric_Proc_RetType as 'declare work_ret record; begin select * into work_ret from Numeric_Tab; return work_ret; end;' language 'plpgsql'; Are there any problems with this ? Dave -- Dave Cramer 519 939 0336 ICQ # 14675561