Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKoAv-0002MC-0T for pgsql-jdbc@arkaria.postgresql.org; Thu, 30 Jul 2015 13:47:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZKoAu-0004OE-J2 for pgsql-jdbc@arkaria.postgresql.org; Thu, 30 Jul 2015 13:47:08 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZKoAQ-0003q0-Am for pgsql-jdbc@postgresql.org; Thu, 30 Jul 2015 13:46:38 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZKoAN-0007gW-JB for pgsql-jdbc@postgresql.org; Thu, 30 Jul 2015 13:46:37 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZKoAK-00018s-Rr for pgsql-jdbc@postgresql.org; Thu, 30 Jul 2015 15:46:33 +0200 Received: from 185.40.248.10 ([185.40.248.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jul 2015 15:46:32 +0200 Received: from spam_eater by 185.40.248.10 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jul 2015 15:46:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: need advice about out parameter settings while calling stored procedure in Java code Date: Thu, 30 Jul 2015 15:46:23 +0200 Lines: 21 Message-ID: References: <91b75bc23fbe41adba69c52ed4c2213f@shmbx01.ebaotech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 185.40.248.10 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: <91b75bc23fbe41adba69c52ed4c2213f@shmbx01.ebaotech.com> X-Pg-Spam-Score: -0.6 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org 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 -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc