| From: | Oliver Jowett <oliver(at)opencloud(dot)com> |
|---|---|
| To: | Philip Yarra <philip(at)utiba(dot)com> |
| Cc: | Alex Stienstra <alex(dot)stienstra(at)zonnet(dot)nl>, pgsql-jdbc(at)postgresql(dot)org |
| Subject: | Re: ResultSetMetaData.getTableName() == null |
| Date: | 2006-09-22 03:56:18 |
| Message-ID: | 45135EE2.6020507@opencloud.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
Philip Yarra wrote:
> Oliver Jowett wrote:
>
>> Essentially I think it boiled down to "getTableName() should return
>> the table alias name", and since we don't have that available we
>> return "". There's a postgresql-specific interface to get at the
>> underlying table name (in the cases where that info is available).
>
>
> Hmmm... maybe I'm missing something, but the attached test case doesn't
> use any aliases, and it returns "" (at least it does for me). Is this
> expected behaviour? If there's a postgresql-specific way to get it,
> couldn't this method implement the same way of getting it?
We don't know whether aliases have been used or not so we can't do this.
-O
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Philip Yarra | 2006-09-22 05:19:59 | Re: ResultSetMetaData.getTableName() == null |
| Previous Message | Philip Yarra | 2006-09-22 03:50:51 | Re: ResultSetMetaData.getTableName() == null |