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: List <pgsql-jdbc@postgresql.org>
Subject: Re: modification required to pass Sun's CTS
Date: Thu, 2 Jun 2005 07:18:35 -0400
Message-ID: <A89FA054-9913-40B6-BEED-036FB7F4475D@fastcrypt.com> (raw)
In-Reply-To: <429E6208.4040001@opencloud.com>
References: <51F5CF3C-F01E-4BB1-AA80-5AC3718FF2B4@fastcrypt.com>
	<429E2AB3.7080405@opencloud.com>
	<3E2F1202-C08A-491E-9C47-392022314CC1@fastcrypt.com>
	<429E6208.4040001@opencloud.com>

Oliver,

OK, so if I understand this correctly, we allow the OUT parameter  
result set if it is a callablestatement ?
I don't think we can actually return two resultsets ie one for the  
out parameters, and yet another if the function returns a resultset.  
I don't believe the
backend has this facility.
On 1-Jun-05, at 9:34 PM, Oliver Jowett wrote:

> Dave Cramer wrote:
>
>
>>                         cstmt = conn.prepareCall("{call  
>> Numeric_Proc (?,?,?)}");
>>                         msg.setMsg("Register the output parameter");
>>                         cstmt.registerOutParameter  
>> (1,java.sql.Types.NUMERIC,15);
>>                         cstmt.registerOutParameter  
>> (2,java.sql.Types.NUMERIC,15);
>>                         cstmt.registerOutParameter  
>> (3,java.sql.Types.NUMERIC,15);
>>                         msg.setMsg("execute the procedure");
>>                         cstmt.executeUpdate();
>>
>
> Ok, so that is exactly the case I was talking about, a procedure  
> that doesn't return a value or resultset, but has OUT parameters.  
> We should mask the resultset we get from the backend in this case  
> as it's just an implementation detail of our OUT mechanism. (i.e.  
> executeUpdate() does not complain, executeQuery() does complain, etc)
>
> -O
>
> ---------------------------(end of  
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>    (send "unregister YourEmailAddressHere" to  
> majordomo@postgresql.org)
>
>




view thread (6+ messages)  latest in thread

Message-ID: <A89FA054-9913-40B6-BEED-036FB7F4475D@fastcrypt.com>
Permalink:  ../A89FA054-9913-40B6-BEED-036FB7F4475D@fastcrypt.com/
Also on:    postgresql.org/message-id/A89FA054-9913-40B6-BEED-036FB7F4475D@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, oliver@opencloud.com
  Subject: Re: modification required to pass Sun's CTS
  In-Reply-To: <A89FA054-9913-40B6-BEED-036FB7F4475D@fastcrypt.com>
  References: <51F5CF3C-F01E-4BB1-AA80-5AC3718FF2B4@fastcrypt.com> <429E2AB3.7080405@opencloud.com> <3E2F1202-C08A-491E-9C47-392022314CC1@fastcrypt.com> <429E6208.4040001@opencloud.com> <A89FA054-9913-40B6-BEED-036FB7F4475D@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