X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 799EB528A6 for ; Tue, 24 May 2005 15:14:30 -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 87142-04 for ; Tue, 24 May 2005 18:14:25 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id E88C352880 for ; Tue, 24 May 2005 15:14:24 -0300 (ADT) Received: (qmail 21750 invoked from network); 24 May 2005 18:12:42 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 24 May 2005 18:12:42 -0000 Message-ID: <42936EF8.7000703@fastcrypt.com> Date: Tue, 24 May 2005 14:14:16 -0400 From: Dave Cramer Reply-To: pg@fastcrypt.com Organization: PostgreSQL International User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: PostgreSQL-development Subject: IN/OUT parameters 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.026 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/1343 X-Sequence-Number: 68219 I've been working on adding the functionality into the jdbc driver and I'm having some issues. Currently the bind message does not know anything about directionality of the parameter. This means that considerable gyrations need to be done by the driver to transform create function foo( out p1 int, in p2 int, out p3 int) .... then a subsequent "{call = select foo(?,?,?)} This would need to be currently transformed into select foo(?), with the other two being discarded. It seems to me that the bind message needs to support the notion of direction in order for this to work cleanly. Alternatively we could punt and use SQL Server's mechanism where they only support IN, and INOUT, which would require all parameters to be sent to the procedure. On a related note, drop function needs to support the in/out direction. Dave -- Dave Cramer http://www.postgresintl.com 519 939 0336 ICQ#14675561