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-30 15:07:34 |
Message-ID: | 508FED36.6000106@ttc-cmc.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
>> 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™ 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:
>>
>>
> 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.
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Nelson | 2012-10-30 15:53:37 | Publish artifacts to Maven central |
Previous Message | Kris Jurka | 2012-10-30 01:49:20 | Re: TableName |