From: nowind_lee <nowind_lee@qq.com>
To: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: rs.getMetaData.getTableName always return empty string
Date: Sun, 12 Feb 2012 18:17:09 +0800
Message-ID: <tencent_355846A85F1763A159FB8792@qq.com> (raw)
I've read some discussions before I write this post. I know that "rs.getMetaData.getTableName" always return empty string just because the developers think it should be alias name in the query, not the underlying table name, which is hard to implement, so it's best to leave it blank.
And also there is a "PGResultSetMetaData.getBaseTableName()" can be used to get the table name.
I understand this, but it make something very hard. Please see my question:
http://stackoverflow.com/questions/9247064/play2s-anorm-cant-work-on-postgresql
From the implementation of play's anorm framework, we know that most of other jdbc drivers all return the underlying table name in "rs.getMetaData.getTableName". It make the parse of result set of "join" query easily.
Since all other drivers have the same action, will postgresql driver do it too? I think return the underlying table name is much more useful than an empty string.
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-bugs@postgresql.org
Cc: nowind_lee@qq.com
Subject: Re: rs.getMetaData.getTableName always return empty string
In-Reply-To: <tencent_355846A85F1763A159FB8792@qq.com>
References: <tencent_355846A85F1763A159FB8792@qq.com>
* 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