pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Thomas Hallgren <thhal@mailblocks.com>
Cc: Larry White <ljw1001@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: prepared statement call fails
Date: Mon, 06 Dec 2004 10:35:45 +1300
Message-ID: <41B37F31.1070205@opencloud.com> (raw)
In-Reply-To: <thhal-0vv6OAs+HcC4bv5Tf2D5MH8fUmr8Wr9@mailblocks.com>
References: <d15ea14a0412051050399cd69b@mail.gmail.com>
	<41B35CC6.2030800@mailblocks.com>
	<d15ea14a04120511366efd4b9c@mail.gmail.com>
	<41B3663B.1010003@mailblocks.com>
	<thhal-0vf6OAs2HcC4EOCO9kFe0y/p7mAxh7m@mailblocks.com>
	<thhal-0vv6OAs+HcC4bv5Tf2D5MH8fUmr8Wr9@mailblocks.com>

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



view thread (13+ messages)  latest in thread

Message-ID: <41B37F31.1070205@opencloud.com>
Permalink:  ../41B37F31.1070205@opencloud.com/
Also on:    postgresql.org/message-id/41B37F31.1070205@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, thhal@mailblocks.com, ljw1001@gmail.com
  Subject: Re: prepared statement call fails
  In-Reply-To: <41B37F31.1070205@opencloud.com>
  References: <d15ea14a0412051050399cd69b@mail.gmail.com> <41B35CC6.2030800@mailblocks.com> <d15ea14a04120511366efd4b9c@mail.gmail.com> <41B3663B.1010003@mailblocks.com> <thhal-0vf6OAs2HcC4EOCO9kFe0y/p7mAxh7m@mailblocks.com> <thhal-0vv6OAs+HcC4bv5Tf2D5MH8fUmr8Wr9@mailblocks.com> <41B37F31.1070205@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox