Re: need advice about out parameter settings while calling stored procedure in Java code

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: need advice about out parameter settings while calling stored procedure in Java code
Date: 2015-07-30 13:46:23
Message-ID: mpd9rf$gh6$1@ger.gmane.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Alex Wang schrieb am 30.07.2015 um 15:18:
> I am migrating from Oracle to Postgresql, and have encountered below
> issue while calling stored procedure via the latest PG JDBC
> (postgresql-9.4-1201.jdbc4.jar).>
>
> ----------start------------
>
> PROCEDURE p_myprocedure(a character varying, b character varying, c character varying,d character varying, OUT o1 text, OUT o2 text) IS
> BEGIN
> Blalabla;
> END;
> ----------end-------------
>

The above is invalid for PostgreSQL.

Are you sure you are using PostgreSQL and not EnterpriseDB? (which I think offers such a compatibility layer)

Thomas

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Balázs Zsoldos 2015-07-31 00:32:10 Why is columnNames in Connection.prepareStatement(sql, columnNames[]) automatically quoted
Previous Message Alex Wang 2015-07-30 13:18:35 need advice about out parameter settings while calling stored procedure in Java code