Skip site navigation (1) Skip section navigation (2)

Bug #589: JDBC KEY_SEQ in getImportedKey starts at 0

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bug #589: JDBC KEY_SEQ in getImportedKey starts at 0
Date: 2002-02-15 11:51:07
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
David Goodenough (david(dot)goodenough(at)btconnect(dot)com) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
JDBC KEY_SEQ in getImportedKey starts at 0

Long Description
getImportedKey from DatabaseMetaData returns a ResultSet and in that
ResultSet are values with a key KEY_SEQ.  In Postgresql this starts
at 0, but DB/2 and MySql both start at 1.  I can find no document
which requires a particular start for JDBC, but the ODBC docs do 
require this to start at 1.

Change is needed to both jdbc2/ and the jdbc1
version.  There is a short seq = 0; which needs to be changed to
short seq = 1;

Sample Code

No file was uploaded with this report

pgsql-bugs by date

Next:From: pgsql-bugsDate: 2002-02-15 12:06:07
Subject: Bug #590: Migration to Postgres 7.2 impossible when capitals are used in database name
Previous:From: David GoodenoughDate: 2002-02-15 11:46:10
Subject: (JDBC) KEY_SEQ in Foreign Key result set starts at 0, should be 1

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group