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 C98CF3A5DFC for ; Sun, 5 Dec 2004 21:29:42 +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 78102-07 for ; Sun, 5 Dec 2004 21:29:39 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 47D913A5D43 for ; Sun, 5 Dec 2004 21:29:41 +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 1Cb3wi-0002F2-00; Mon, 06 Dec 2004 10:29:32 +1300 Message-ID: <41B37F31.1070205@opencloud.com> Date: Mon, 06 Dec 2004 10:35:45 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.9 (X11/20041130) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Thomas Hallgren Cc: Larry White , pgsql-jdbc@postgresql.org Subject: Re: prepared statement call fails References: <41B35CC6.2030800@mailblocks.com> <41B3663B.1010003@mailblocks.com> In-Reply-To: X-Enigmail-Version: 0.89.0.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 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/27 X-Sequence-Number: 11693 Thomas Hallgren wrote: > The JDBC driver must do some trick then, and make an attempt to convert > what you wrote into what I suggested. With some risk of getting flogged, > I must admin that I disagree with that implementation since the > interface doc's for JDBC mandates that the CallableStatement is for > Stored Procedures only. Please explain the difference between a PostgreSQL value-returning function and a stored procedure that returns a value and takes no OUT parameters. The {? = call ...} syntax is standard. I don't see any reason not to map it to PostgreSQL functions for the cases that make sense. > Patching it so that it can call functions will cause future problems once the backend really do implement stored procedures correctly. If the server makes changes that are not backwards-compatible, of course old drivers are going to break. But a) those sort of changes are rare and b) the same argument holds true for *everything* in the driver. I believe the current work on SPs is via a new SQL command (PERFORM?), so I really can't see how this would cause future problems. -O