pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: proposal for CallableStatements to handle multiple out
Date: Fri, 18 Jun 2004 19:40:31 -0400
Message-ID: <1087602030.15607.190.camel@localhost.localdomain> (raw)
In-Reply-To: <40D37653.8010302@opencloud.com>
References: <1087582419.15586.173.camel@localhost.localdomain>
	<40D37653.8010302@opencloud.com>

See Kris's addition.

At this point however I've  done some work and realized that most of the
parsing, binding and rewriting of the queries will need to be
encapsulated in two classes, one for regular statements, and one for
callable statements. This will allow me to totally encapsulate the logic
for this inside the CallableStatement implementations, instead of
mucking up the current AbstractJdbc1Statement code.

Dave
On Fri, 2004-06-18 at 19:10, Oliver Jowett wrote:
> Dave Cramer wrote:
> > 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 ?
> 
> Could you describe the driver side of your proposal?
> 
> -O
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
> 
> 
> 
> !DSPAM:40d3774e134381905984059!
> 
> 
-- 
Dave Cramer
519 939 0336
ICQ # 14675561




view thread (10+ messages)  latest in thread

Message-ID: <1087602030.15607.190.camel@localhost.localdomain>
Permalink:  ../1087602030.15607.190.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1087602030.15607.190.camel@localhost.localdomain

 · 

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, oliver@opencloud.com
  Subject: Re: proposal for CallableStatements to handle multiple out
  In-Reply-To: <1087602030.15607.190.camel@localhost.localdomain>
  References: <1087582419.15586.173.camel@localhost.localdomain> <40D37653.8010302@opencloud.com> <1087602030.15607.190.camel@localhost.localdomain>

* 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