Re: Callable Statements - Mailing list pgsql-jdbc

From floess@mindspring.com
Subject Re: Callable Statements
Date
Msg-id 1513788.1049891734091.JavaMail.nobody@wamui05.slb.atl.earthlink.net
Whole thread Raw
In response to Callable Statements  (Mark French <frenchmb@tpg.com.au>)
Responses Re: Callable Statements
List pgsql-jdbc
Mark:

To answer your question, you can't use CallableStatement where you return a row, rows or RECORD type.

For a function returning multiple rows, a single row, or RECORD you would have to use a PreparedStatement.  The string
passedto your prepared statement would resemble "select * from function" 

I don't have an example on hand...but I may be able to get one for you later.

Scot

-------Original Message-------
From: Mark French <frenchmb@tpg.com.au>
Sent: 04/09/03 04:05 PM
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] Callable Statements

>
> Hi,

I'm new to postgres JDBC and was wondering if it supported callable
statements at all?  The documentation doesn't have any examples and
would like to know it was possible to use them to call functions that
return multiple rows?  An example would be greatly appreciated.

Cheers

Mark


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>


pgsql-jdbc by date:

Previous
From: Felipe Schnack
Date:
Subject: Re: Performance of batches with Statements and
Next
From: Nic Ferrier
Date:
Subject: Re: Callable Statements