Re: Reading schema information

From: dmp <danap(at)ttc-cmc(dot)net>
To: PostgreSQL JDBC <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Reading schema information
Date: 2015-05-26 14:39:31
Message-ID: 556485A3.6070700@ttc-cmc.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

> Index 23 is IS_AUTOINCREMENT which does not have the same meaning as
> IS_GENERATEDCOLUMN (index 24) which was added to the JDBC specification in
> Java 7 / JDBC 4.1. The former is only for one specific column type: auto
> increment (eg serial), while the latter is for all calculated or otherwise
> generated columns.
>
> Mark

Yes, that is correct. I was looling at the code array indexing not the
API. rs.getString(24) is the correct index and IS_GENERATEDCOLUMN is not
implemented in getColumns().

danap.

Browse pgsql-jdbc by date

  From Date Subject
Next Message Thomas Kellerer 2015-05-30 08:21:52 CallableStatement.getParameterMetaData() throws exception for valid {call ...} statement
Previous Message Dave Cramer 2015-05-26 11:54:25 Re: Reading schema information