Re: [PATCH] NPE in meta data getPrimaryKeys() - Mailing list pgsql-jdbc

From Anders Hermansen
Subject Re: [PATCH] NPE in meta data getPrimaryKeys()
Date
Msg-id 20021217170814.GA18398@online.no
Whole thread Raw
In response to Re: [PATCH] NPE in meta data getPrimaryKeys()  (Daniel Serodio <daniel@checkforte.com.br>)
Responses Re: [PATCH] NPE in meta data getPrimaryKeys()  (Daniel Serodio <daniel@checkforte.com.br>)
List pgsql-jdbc
* Daniel Serodio (daniel@checkforte.com.br) wrote:
> The Javadoc for DatabaseMetaData.getPrimaryKeys(...) clearly states that
> catalog may be null, but doesn't mention anything about schema or table
> being null. I understand this as meaning they (schema and table) can't
> be null.

Maybe you have an old javadoc? In my (1.4.1) it specifies that schema
can be null as well. But it does not mention that table can be null. This is
probably a bug in ojb then.

<quote>
Parameters:
    catalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a
catalog;null means that the catalog name should not be used to narrow the search 
    schema - a schema name; must match the schema name as it is stored in the database; "" retrieves those without a
schema;null means that the schema name should not be used to narrow the search 
    table - a table name; must match the table name as it is stored in the database
</quote>


Anders

--
Anders Hermansen
YoYo Mobile as

pgsql-jdbc by date:

Previous
From: Anders Hermansen
Date:
Subject: Re: [PATCH] NPE in meta data getPrimaryKeys()
Next
From: Daniel Serodio
Date:
Subject: Re: [PATCH] NPE in meta data getPrimaryKeys()