Re: BUG #4488: jdbc : DatabaseMetaData.getPrimaryKeys no result - Mailing list pgsql-bugs

From Kris Jurka
Subject Re: BUG #4488: jdbc : DatabaseMetaData.getPrimaryKeys no result
Date
Msg-id Pine.BSO.4.64.0810211713460.30540@leary.csoft.net
Whole thread Raw
In response to BUG #4488: jdbc : DatabaseMetaData.getPrimaryKeys no result  ("Marcel Petavy" <petavy@gmx.net>)
Responses Re: BUG #4488: jdbc : DatabaseMetaData.getPrimaryKeys no result
List pgsql-bugs
On Tue, 21 Oct 2008, Marcel Petavy wrote:

> Bug reference:      4488
> PostgreSQL version: 8.2.4
> Operating system:   Windows XP
> Description:        jdbc : DatabaseMetaData.getPrimaryKeys no result
> Details:
>
> If I try to query the primary key via JDBC driver
> "postgresql-8.3-603.jdbc4.jar" DatabaseMetaData.getPrimaryKeys I get not
> result.
>
> create table test (id integer not null primary key(id))
>
> ResultSet rs = connection.getMetaData(null,null,"test");
>
> rs gives no rows.

It definitely does work, perhaps your table is really "TEST" instead of
"test"?  If you still believe it's a driver problem, please post a
complete test case that shows the exact create table command and java code
calling getPrimaryKeys.

Kris Jurka

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #4481: Big text insert/update using functions failed
Next
From: Tom Lane
Date:
Subject: Re: BUG #4479: Incorrect TSearch2 results when inserting after deleting