pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
JDBC : CallableStatement returns always same Exception
3+ messages / 2 participants
[nested] [flat]

* JDBC : CallableStatement returns always same Exception
@ 2000-04-17 14:17  Bruno Faure <bfaure@cosmosbay.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Bruno Faure @ 2000-04-17 14:17 UTC (permalink / raw)
  To: pgsql-interfaces; +Cc: pgsql-novice@postgresql.org

Hi, I'am using a PGSQL DB on Linux, and I'm writing a Connection Servlet
to that DB.
Everything is fine when using simple statements, but I can't use any
CallableStatement to execute stored procedures.
It returns an exception , whatever I put in the prepareCall (even if
nothing) :

Error : Callable Statements are not supported at this time.
State : null
Code : 0

My code :
   CallableStatement instruction ;
   instruction = con.prepareCall("call ps_ins_user{?,?}");    --> raises
the Exception
    ...
or instruction = con.prepareCall("");   --> raises the Exception as well


Does that mean that stored procedure are not supported on pgSQL :-(?

I feel that this is a postgreSQL problem, because I've checked on the
JDBC forum, and others are using the same code on other database without
any probem.

Thanks for your help.

Bruno Faure

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* JDBC : CallableStatement returns always same Exception
@ 2000-04-17 14:43  Bruno Faure <bfaure@cosmosbay.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Bruno Faure @ 2000-04-17 14:43 UTC (permalink / raw)
  To: pgsql-interfaces


Hi, I'am using a PGSQL DB on Linux, and I'm writing a Connection Servlet to that DB.
Everything is fine when using simple statements, but I can't use any CallableStatement to
execute stored procedures.
It returns an exception , whatever I put in the prepareCall (even if nothing) :

Error : Callable Statements are not supported at this time.
State : null
Code : 0

My code :
   CallableStatement instruction ;
   instruction = con.prepareCall("call ps_ins_user{?,?}");    --> raises the Exception
    ...
or instruction = con.prepareCall("");   --> raises the Exception as well


Does that mean that stored procedure are not supported on pgSQL :-(?

I feel that this is a postgreSQL problem, because I've checked on the JDBC forum, and others are
using the same code on other
database without any probem.

Thanks for your help.

Bruno Faure




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* RE: JDBC : CallableStatement returns always same Exc eption
@ 2000-04-17 15:20  Peter Mount <petermount@it.maidstone.gov.uk>
  0 siblings, 0 replies; 3+ messages in thread

From: Peter Mount @ 2000-04-17 15:20 UTC (permalink / raw)
  To: 'bruno.faure@cosmosbay.com' <bruno.faure@cosmosbay.com>; pgsql-interfaces

Callable statements are not supported at all. I was planning on
including them in 7.0, but the amount of work needed means it's not
going to be ready in time, hence it's going to be a 7.1 item.

PS: It was only a couple of weeks ago that I found some real examples on
how CallableStatement works.

Peter

-- 
Peter Mount
Enterprise Support
Maidstone Borough Council
Any views stated are my own, and not those of Maidstone Borough Council.



-----Original Message-----
From: Bruno Faure [mailto:bfaure@cosmosbay.com]
Sent: Monday, April 17, 2000 3:44 PM
To: pgsql-interfaces@postgresql.org
Subject: [INTERFACES] JDBC : CallableStatement returns always same
Exception



Hi, I'am using a PGSQL DB on Linux, and I'm writing a Connection Servlet
to that DB.
Everything is fine when using simple statements, but I can't use any
CallableStatement to
execute stored procedures.
It returns an exception , whatever I put in the prepareCall (even if
nothing) :

Error : Callable Statements are not supported at this time.
State : null
Code : 0

My code :
   CallableStatement instruction ;
   instruction = con.prepareCall("call ps_ins_user{?,?}");    --> raises
the Exception
    ...
or instruction = con.prepareCall("");   --> raises the Exception as well


Does that mean that stored procedure are not supported on pgSQL :-(?

I feel that this is a postgreSQL problem, because I've checked on the
JDBC forum, and others are
using the same code on other
database without any probem.

Thanks for your help.

Bruno Faure



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2000-04-17 15:20 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-04-17 14:17 JDBC : CallableStatement returns always same Exception Bruno Faure <bfaure@cosmosbay.com>
2000-04-17 14:43 JDBC : CallableStatement returns always same Exception Bruno Faure <bfaure@cosmosbay.com>
2000-04-17 15:20 RE: JDBC : CallableStatement returns always same Exc eption Peter Mount <petermount@it.maidstone.gov.uk>

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