Re: BUG #4488: jdbc : DatabaseMetaData.getPrimaryKeys no result

From: davidsarmstrong <davidsarmstrong(at)yahoo(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4488: jdbc : DatabaseMetaData.getPrimaryKeys no result
Date: 2008-12-29 10:46:12
Message-ID: 21201506.post@talk.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Kris,

I get the same error. I've verified the table name and the primary key. The
interesting part is, it seems to work in cases where the primary key is a
serial.

Thanks,

Dave Armstrong

Kris Jurka wrote:
>
>
>
> 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
>
> --
> Sent via pgsql-bugs mailing list (pgsql-bugs(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-bugs
>
>

--
View this message in context: http://www.nabble.com/BUG--4488%3A-jdbc-%3A-DatabaseMetaData.getPrimaryKeys-no-result-tp20098673p21201506.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2008-12-29 10:51:54 Re: BUG #4596: information_schema.table_privileges is way too slow
Previous Message Kamaraju Prathi 2008-12-29 05:26:54 Invalid charcters handling