From: Glenn Holmer <gholmer@weycogroup.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: DatabaseMetaData
Date: Tue, 23 May 2006 08:25:09 -0500
Message-ID: <200605230825.09655.gholmer@weycogroup.com> (raw)
In-Reply-To: <Pine.BSO.4.63.0605221814510.9728@leary2.csoft.net>
References: <200605221734.06987.gholmer@weycogroup.com>
<Pine.BSO.4.63.0605221814510.9728@leary2.csoft.net>
On Monday 22 May 2006 18:17, you wrote:
> The first argument should be your database name, but this is not
> actually causing a problem because that parameter is ignored because
> pg does not support cross database calls. Other than that it looks
> good. Are you sure it's in the public schema? Are you sure it
> wasn't created with a case sensitive table name "tSoldTo" or
> something?
Thanks. The DDL to create the table was:
CREATE TABLE tsoldto(
uid_pk INTEGER
...
and I found that while this works:
dmd = conn.getMetaData();
rs = dmd.getColumns("licensee", "public", "tsoldto", "%");
// rs = dmd.getColumns("licensee", "public", "tSoldTo", "%");
while (rs.next()) {
columnNames.add(rs.getString("COLUMN_NAME"));
}
rs.close();
using the commented-out line does not. I thought table names were
case-insensitive? (this is with Postgres 8.0.3 and build 316 of the
JDBC driver).
--
____________________________________________________________
Glenn Holmer gholmer@weycogroup.com
Software Engineer phone: 414-908-1809
Weyco Group, Inc. fax: 414-908-1601
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: gholmer@weycogroup.com
Subject: Re: DatabaseMetaData
In-Reply-To: <200605230825.09655.gholmer@weycogroup.com>
References: <200605221734.06987.gholmer@weycogroup.com> <Pine.BSO.4.63.0605221814510.9728@leary2.csoft.net> <200605230825.09655.gholmer@weycogroup.com>
* 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