Re: TableName

From: dmp <danap(at)ttc-cmc(dot)net>
To: goran(dot)popov(at)prokomsoft(dot)rs, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: TableName
Date: 2012-10-29 16:21:54
Message-ID: 508EAD22.3030602@ttc-cmc.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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);
> }

In response to

  • TableName at 2012-10-29 15:30:34 from Goran Popov

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Richard Broersma 2012-10-29 22:26:42 Re: JDBC4 Postgresql Driver
Previous Message dmp 2012-10-29 16:08:01 Re: 9.1-903 JDBC 3 Download