Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TSsHZ-0007w4-3q for pgsql-jdbc@postgresql.org; Mon, 29 Oct 2012 16:33:45 +0000 Received: from outbound.vnet-inc.com ([216.146.104.103]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TSsHR-000530-MV for pgsql-jdbc@postgresql.org; Mon, 29 Oct 2012 16:33:44 +0000 Received: from [192.168.157.132] (unknown [76.75.27.41]) by outbound.vnet-inc.com (Postfix) with ESMTP id A57BE5AAB; Mon, 29 Oct 2012 10:33:34 -0600 (MDT) Message-ID: <508EAD22.3030602@ttc-cmc.net> Date: Mon, 29 Oct 2012 10:21:54 -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> In-Reply-To: <508EA11A.7080104@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/137 X-Sequence-Number: 23461 Looks like perhasp because it is not applicable for a resultSet. As per the the Java=E2=84=A2 Platform, Standard Edition 6 API Specificati= on. 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: > 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); > }