Re: TableName - Mailing list pgsql-jdbc

From dmp
Subject Re: TableName
Date
Msg-id 508EAD22.3030602@ttc-cmc.net
Whole thread Raw
In response to TableName  (Goran Popov <goran.popov@prokomsoft.rs>)
List pgsql-jdbc
Looks like perhasp because it is not applicable for a resultSet.
As per the the Java™ Platform, Standard Edition 6 API Specification.

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);
> }



pgsql-jdbc by date:

Previous
From: dmp
Date:
Subject: Re: 9.1-903 JDBC 3 Download
Next
From: Richard Broersma
Date:
Subject: Re: JDBC4 Postgresql Driver