Retrieve auto-generated key.

From: "Sangeeta" <Sangeeta(dot)shah(at)bluenog(dot)com>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Retrieve auto-generated key.
Date: 2008-11-04 15:46:05
Message-ID: 004401c93e94$733f9b00$59bed100$@shah@bluenog.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi

Ability to retrieve auto-generated key is one of the key features of JDBC3.
I tried using prepareStatement(String sql, int autoGeneratedKeys) ,
prepareStatement(String sql, int[] columnIndexes) and
prepareStatement(String sql, String[] columnNames) but with no success . It
returned with exception message as "Returning autogenerated keys is not
supported."

I know there is already one thread for retrieve auto-generated key but look
like that thread does not have one distinct solution.

Is there any patch or workaround to retrieve auto-generated key ?

Thanks

Sangeeta

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Albe Laurenz 2008-11-04 16:01:56 Re: JNDI Datasource in tomcat
Previous Message Ingmar Lötzsch 2008-11-04 13:19:19 Re: JNDI Datasource in tomcat