X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 7A7159F94EA for ; Tue, 23 May 2006 10:25:22 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 69878-04 for ; Tue, 23 May 2006 10:25:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.weycogroup.com (mail.weycogroup.com [66.162.233.194]) by postgresql.org (Postfix) with ESMTP id 532B79F946D for ; Tue, 23 May 2006 10:25:13 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mail.weycogroup.com (Postfix) with ESMTP id 71300B4F8A for ; Tue, 23 May 2006 08:10:46 -0500 (CDT) From: Glenn Holmer Organization: Weyco Group, Inc. To: pgsql-jdbc@postgresql.org Subject: Re: DatabaseMetaData Date: Tue, 23 May 2006 08:25:09 -0500 User-Agent: KMail/1.8 References: <200605221734.06987.gholmer@weycogroup.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605230825.09655.gholmer@weycogroup.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/107 X-Sequence-Number: 15235 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