From: dmp <danap@ttc-cmc.net>
To: PostgreSQL JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: Reading schema information
Date: Tue, 26 May 2015 08:39:31 -0600
Message-ID: <556485A3.6070700@ttc-cmc.net> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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.
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: danap@ttc-cmc.net
Subject: Re: Reading schema information
In-Reply-To: <556485A3.6070700@ttc-cmc.net>
References: <556485A3.6070700@ttc-cmc.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox