pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: PostgreSQL-development <pgsql-hackers@postgreSQL.org>
Subject: IN/OUT parameters
Date: Tue, 24 May 2005 14:14:16 -0400
Message-ID: <42936EF8.7000703@fastcrypt.com> (raw)

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




view thread (11+ messages)  latest in thread

Message-ID: <42936EF8.7000703@fastcrypt.com>
Permalink:  ../42936EF8.7000703@fastcrypt.com/
Also on:    postgresql.org/message-id/42936EF8.7000703@fastcrypt.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: pg@fastcrypt.com, pgsql-hackers@postgreSQL.org
  Subject: Re: IN/OUT parameters
  In-Reply-To: <42936EF8.7000703@fastcrypt.com>
  References: <42936EF8.7000703@fastcrypt.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