pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
rs.getMetaData.getTableName always return empty string
4+ messages / 2 participants
[nested] [flat]

* rs.getMetaData.getTableName always return empty string
@ 2012-02-12 10:17  nowind_lee <nowind_lee@qq.com>
  0 siblings, 0 replies; 4+ messages in thread

From: nowind_lee @ 2012-02-12 10:17 UTC (permalink / raw)
  To: pgsql-bugs

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.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* rs.getMetaData.getTableName always return empty string
@ 2012-02-12 10:42  nowind_lee <nowind_lee@qq.com>
  0 siblings, 0 replies; 4+ messages in thread

From: nowind_lee @ 2012-02-12 10:42 UTC (permalink / raw)
  To: pgsql-bugs

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.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* rs.getMetaData.getTableName always return empty string
@ 2012-02-12 16:42  nowind_lee <nowind_lee@qq.com>
  0 siblings, 1 reply; 4+ messages in thread

From: nowind_lee @ 2012-02-12 16:42 UTC (permalink / raw)
  To: pgsql-bugs

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.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: rs.getMetaData.getTableName always return empty string
@ 2012-02-27 18:59  Robert Haas <robertmhaas@gmail.com>
  parent: nowind_lee <nowind_lee@qq.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Robert Haas @ 2012-02-27 18:59 UTC (permalink / raw)
  To: nowind_lee <nowind_lee@qq.com>; +Cc: pgsql-bugs

On Sun, Feb 12, 2012 at 11:42 AM, nowind_lee <nowind_lee@qq.com> wrote:
> 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.

I think you might want to post this question to the pgsql-jdbc mailing
list, rather than here.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2012-02-27 18:59 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-02-12 10:17 rs.getMetaData.getTableName always return empty string nowind_lee <nowind_lee@qq.com>
2012-02-12 10:42 rs.getMetaData.getTableName always return empty string nowind_lee <nowind_lee@qq.com>
2012-02-12 16:42 rs.getMetaData.getTableName always return empty string nowind_lee <nowind_lee@qq.com>
2012-02-27 18:59 ` Robert Haas <robertmhaas@gmail.com>

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