DatabaseMetaData.getPrimaryKeys()

Поиск
Список
Период
Сортировка
От SNarayan@automatedlogic.com
Тема DatabaseMetaData.getPrimaryKeys()
Дата
Msg-id OF1F3416BD.E13FB15F-ON85256D79.005B8814-85256D79.005CD162@automatedlogic.com
обсуждение исходный текст
Ответы Re: DatabaseMetaData.getPrimaryKeys()
Список pgsql-jdbc

I wrote earlier regarding a bug where getPrimaryKeys() returns an empty result set (in version PostgreSQL 7.3.3 JDBC3 jdbc driver build 112). The issue seems to be due to case sensitivity of the table name specified in the getPrimaryKeys method call.

databaseMetaData.getPrimaryKeys(null, null, 'TESTTABLE') returns empty result set,

However, databaseMetaData.getPrimaryKeys(null, null, 'testtable') returned the primary keys I expected.

The same issue seems to be present for the getIndexInfo() method also.

Hope this work around helps others for now,
sundar.



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

Предыдущее
От: "LEON"
Дата:
Сообщение: Re: [SQL] JDBC encoding problem
Следующее
От: Xavier Poinsard
Дата:
Сообщение: Broken link on jdbc.postgresql.org main page