pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: dmp <danap@ttc-cmc.net>
To: goran.popov@prokomsoft.rs
To: pgsql-jdbc@postgresql.org
Subject: Re: TableName
Date: Mon, 29 Oct 2012 10:21:54 -0600
Message-ID: <508EAD22.3030602@ttc-cmc.net> (raw)
In-Reply-To: <508EA11A.7080104@prokomsoft.rs>
References: <508EA11A.7080104@prokomsoft.rs>

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





view thread (4+ messages)  latest in thread

Message-ID: <508EAD22.3030602@ttc-cmc.net>
Permalink:  ../508EAD22.3030602@ttc-cmc.net/
Also on:    postgresql.org/message-id/508EAD22.3030602@ttc-cmc.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: danap@ttc-cmc.net, goran.popov@prokomsoft.rs
  Subject: Re: TableName
  In-Reply-To: <508EAD22.3030602@ttc-cmc.net>
  References: <508EA11A.7080104@prokomsoft.rs> <508EAD22.3030602@ttc-cmc.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox