Re: Function nesting issue

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: 张海峰 <roxetter(at)gmail(dot)com>
Cc: rod(at)iol(dot)ie, pgsql-general(at)postgresql(dot)org
Subject: Re: Function nesting issue
Date: 2010-01-28 15:51:11
Message-ID: 15424.1264693871@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?GB2312?B?1cW6o7fl?= <roxetter(at)gmail(dot)com> writes:
> And i call function a by jdbc:
> ...
> conn.setAutoCommit(false);
> CallableStatement cs = conn.prepareCall("{ call a( ?, ? ) }");
> cs.registerOutParameter(1, Types.INTEGER);
> cs.registerOutParameter(2, Types.OTHER);
> cs.execute();

That's not the approved syntax for using OUT parameters in Postgres.
It's possible that JDBC would do something under-the-hood to make it
look like it works, but you'd be best off asking on pgsql-jdbc about
whether they do or not.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joshua Tolley 2010-01-28 16:31:13 Re: query a table from one database to another
Previous Message Andy Colson 2010-01-28 15:11:52 Re: dynamic crosstab