Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZmqG1-00028J-BB for pgsql-jdbc@arkaria.postgresql.org; Thu, 15 Oct 2015 21:40:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZmqG0-00014c-Ru for pgsql-jdbc@arkaria.postgresql.org; Thu, 15 Oct 2015 21:40:16 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZmqFU-0000R8-E9 for pgsql-jdbc@postgresql.org; Thu, 15 Oct 2015 21:39:44 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZmqFR-00081g-4K for pgsql-jdbc@postgresql.org; Thu, 15 Oct 2015 21:39:43 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZmqFK-000321-Cf for pgsql-jdbc@postgresql.org; Thu, 15 Oct 2015 23:39:34 +0200 Received: from ppp-46-244-206-106.dynamic.mnet-online.de ([46.244.206.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Oct 2015 23:39:34 +0200 Received: from spam_eater by ppp-46-244-206-106.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Oct 2015 23:39:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: Release 1204 released Date: Thu, 15 Oct 2015 23:39:17 +0200 Lines: 45 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-46-244-206-106.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org All I can say is, that due to the nature of SQL Workbench (being DBMS independent) I do use (or at least test) many other DBMS and every[1] other JDBC driver does return view columns - including materialized views in Oracle and DB2. So apparently all the other vendors think it makes sense to return view (and materialized view) columns. Thomas [1] I have tested at least briefly more than 15 different ones. Dave Cramer schrieb am 15.10.2015 um 22:47: > So I am looking at the API reference and no where does it say getColumns should return information about views. > > That being said the fact that getTables returns the type of the table there may be some inference that it should ? > > Lance, do you have some insight here ? > > Dave Cramer > > On 15 October 2015 at 05:10, Thomas Kellerer > wrote: > > Dave Cramer schrieb am 09.10.2015 um 21:32: >> * fix: filter DatabaseMetaData.getColumns by tables PR #386 >> (0c95126) > > Why was this done? > > From my perspective this is a serious bug, because now getColumns() > doesn't return column information for views, materialized views or > foreign tables any more. > > Which in turn means that the SQL client I am maintaining (SQL > Workbench/J) is no longer able to display column information for > anything else than tables. > > I would assume that this is true for any other JDBC based SQL client. > It will also break tools like Liquibase and probably Hibernate as > well as they also rely on getColumns() to return information about > views (I am sure about Liquibase, not 100% sure about Hibernate > though) > > > Regards Thomas -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc