pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: getTables() not working for information_schema or pg_catalog
Date: Fri, 25 Nov 2005 17:34:31 +0100
Message-ID: <dm7eel$q6f$1@sea.gmane.org> (raw)

Hello,

I just stumbled across something:

When I call

con.getMetaData().getTables(null, "information_schema", "%", null);

(where con is a java.sql.Connection), I would assume to get all tables 
that are stored in the information_schema, but the returned ResultSet is 
empty (next() immediately returns false).

The same is true when I call it with "pg_catalog"
Passing null for the table name does not make a difference.

getTables(null, "public", "%", null) is working fine.

Am I missing something, or is this broken?

I am using postgresql-8.1-404.jdbc3.jar and PG 8.1 on a Windows 2000 box 
(with JDK 1.5)


Regards
Thomas




view thread (6+ messages)  latest in thread

Message-ID: <dm7eel$q6f$1@sea.gmane.org>
Permalink:  ../dm7eel$q6f$1@sea.gmane.org/
Also on:    postgresql.org/message-id/dm7eel$q6f$1@sea.gmane.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: getTables() not working for information_schema or pg_catalog
  In-Reply-To: <dm7eel$q6f$1@sea.gmane.org>
  References: <dm7eel$q6f$1@sea.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox