Обсуждение: Bug #589: JDBC KEY_SEQ in getImportedKey starts at 0

Поиск
Список
Период
Сортировка

Bug #589: JDBC KEY_SEQ in getImportedKey starts at 0

От
pgsql-bugs@postgresql.org
Дата:
David Goodenough (david.goodenough@btconnect.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/DatabaseMetaData.java 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