![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Stored procedures can return result code which is distinct from OUT parameters. Example: db2 => call postgres.tpcbprofile(1,1,1,15) Stav při návratu = 540 Is there way to get this return code via JDBC API? |
#3
| |||
| |||
|
|
On Aug 28, 11:18Â*am, hsn_ <kolar.ra... (AT) gmail (DOT) com> wrote: Stored procedures can return result code which is distinct from OUT parameters. Example: db2 => call postgres.tpcbprofile(1,1,1,15) Stav pÅ™i návratu = 540 Is there way to get this return code via JDBC API? Hi, I'm typing this from memory, before I've fully woken up, so do check the details of the syntax, but this is close... CallableStatement cs = c.prepareCall("{ ? := postgres.tpcbprofile(1,1,1,15) }"); cs.registerOutParameter(1, INT ); cs.execute(); int foo = cs.getInt(1); Joe Weinstein |
![]() |
| Thread Tools | |
| Display Modes | |
| |