Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TTDb6-0001TB-Ga for pgsql-jdbc@postgresql.org; Tue, 30 Oct 2012 15:19:20 +0000 Received: from outbound.vnet-inc.com ([216.146.104.103]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TTDb4-0004K7-EG for pgsql-jdbc@postgresql.org; Tue, 30 Oct 2012 15:19:19 +0000 Received: from [192.168.157.132] (unknown [76.75.27.41]) by outbound.vnet-inc.com (Postfix) with ESMTP id 3267B5A43; Tue, 30 Oct 2012 09:19:18 -0600 (MDT) Message-ID: <508FED36.6000106@ttc-cmc.net> Date: Tue, 30 Oct 2012 09:07:34 -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: goran.popov@prokomsoft.rs, pgsql-jdbc@postgresql.org Subject: Re: TableName References: <508EA11A.7080104@prokomsoft.rs> <508EAD22.3030602@ttc-cmc.net> <508F9F46.1020800@prokomsoft.rs> In-Reply-To: <508F9F46.1020800@prokomsoft.rs> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201210/140 X-Sequence-Number: 23464 >> Goran Popov wrote: >>> AbstractJdbc2ResultSetMetaData.java >>> >>> >>> Whay this is default >>> public String getTableName(int column) throws SQLException >>> { >>> return ""; >>> } >>> >>> and not this >>> public String getTableName(int column) throws SQLException >>> { >>> return getBaseTableName(column); >>> } > On 10/29/2012 05:21 PM, dmp wrote: >> Looks like perhasp because it is not applicable for a resultSet. >> As per the the Java=E2=84=A2 Platform, Standard Edition 6 API Specific= ation. >> >> Interface ResultSetMetaData >> >> String getTableName(int column) >> throws SQLException >> >> Gets the designated column's table name. >> >> Parameters: >> column - the first column is 1, the second is 2, ... >> Returns: >> table name or "" if not applicable >> Throws: >> SQLException - if a database access error occurs >> >> Consider SELECT(1*2) resultSet. >> Does that have a table name? >> >> danap. >> Goran Popov wrote: >> >> > No and that shoud be empty "". But when there is table name than should > be table name. I agree and later upon reflection knew that the reason for not returning the table name as such was more complicated as Kris has provided hindsight to. When I first came to this forum I read for insight and occasionally responded when I thought I could contribute. Sometimes I also asked questions like yours in order to point out perceived inconsistencies in the drivers behavior. Later I found out that just as Rome was not build in a day, but over years with many contributing no matter how modest. danap.