DatabaseMetaData.getPrimaryKeys()

From: SNarayan(at)automatedlogic(dot)com
To: pgsql-jdbc(at)postgresql(dot)org
Subject: DatabaseMetaData.getPrimaryKeys()
Date: 2003-08-05 16:46:45
Message-ID: OF1F3416BD.E13FB15F-ON85256D79.005B8814-85256D79.005CD162@automatedlogic.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kurt Overberg 2003-08-05 17:11:10 JDBC encoding problem
Previous Message Felipe Schnack 2003-08-05 16:25:55 Re: Cursornames