Bug #589: JDBC KEY_SEQ in getImportedKey starts at 0

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема Bug #589: JDBC KEY_SEQ in getImportedKey starts at 0
Дата
Msg-id 200202151151.g1FBp7B38160@postgresql.org
обсуждение исходный текст
Список pgsql-bugs
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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Bug #587: Postgresql will not build on HP-UX 11.0 in debug mode
Следующее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #590: Migration to Postgres 7.2 impossible when capitals are used in database name