Re: Callable Statements - Mailing list pgsql-jdbc

From Fernando Nasser
Subject Re: Callable Statements
Date
Msg-id 3F53CE7E.5000000@redhat.com
Whole thread Raw
In response to Callable Statements  (Juan Francisco Diaz <j-diaz@publicar.com>)
List pgsql-jdbc
I believe the version of the driver you are using will require a "? = "
before the call to indicate it is a function (based on the fact that
PostgreSQL implements everything as functions).

Try "{? = call BUSDatosPagina('"+lib+"')}"

Regards,
Fernando

Juan Francisco Diaz wrote:
> Hello, I downloades the latest version of the jdbc3 driver for pgsql but
> when I try to execute a callable, (actually when im preparaing it) I get the
> exception: Callable Statements are not supported at this time.
> Is it a problem of this version of the driver? Or the callable statements
> are NOT supported? If not, how should i proceed? The code snippet that
> throws the exception is:
>
>             String cad = "{call BUSDatosPagina('"+lib+"')}";
>             cs = con.base.prepareCall(cad);
>             result = cs.executeQuery();
>
> Where con is a valid already created connection to the correct db.
>
> Thanks for your comments, help, insults (if im doing something wrong ONLY)
>
>
> JuanF
> (a newbie in evolution II )
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>


--
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9


pgsql-jdbc by date:

Previous
From: Barry Lind
Date:
Subject: Re: SQL injection bug for null-terminated strings?
Next
From: Fernando Nasser
Date:
Subject: Re: Am I right?