Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0D13CB5DBC0 for ; Fri, 30 Sep 2011 13:01:01 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 04515-10 for ; Fri, 30 Sep 2011 16:00:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from outbound.vnet-inc.com (outbound.vnet-inc.com [216.146.104.103]) by mail.postgresql.org (Postfix) with ESMTP id F0B74B5DBBD for ; Fri, 30 Sep 2011 13:00:53 -0300 (ADT) Received: from [192.168.157.132] (unknown [76.75.27.41]) by outbound.vnet-inc.com (Postfix) with ESMTP id C8EB15A1F; Fri, 30 Sep 2011 10:00:53 -0600 (MDT) Message-ID: <4E85E6CA.1080309@ttc-cmc.net> Date: Fri, 30 Sep 2011 09:56:58 -0600 From: dmp User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.13) Gecko/20100914 SeaMonkey/2.0.8 MIME-Version: 1.0 To: Thomas Strunz , PostgreSQL JDBC Subject: Re: metadata.getColumns() using Apache Tomcat / jndi References: <4E85DB26.1050802@ttc-cmc.net> In-Reply-To: <4E85DB26.1050802@ttc-cmc.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/135 X-Sequence-Number: 22253 dmp wrote: > if (columnNamePattern != null && !"".equals(columnNamePattern)) > { > sql += " AND attname LIKE " + escapeQuotes(columnNamePattern); > } > > This is the only place that the columnNamePattern name is specified. I have > not checked beyound this, but the general sql query is not then picking up > all the column names as you might expect to be returned. > > danap > try: getColumNames(null, null, tableName, %) danap.