dbTalk Databases Forums  

Re: [BUGS] BUG #2559: why jdbc-driver AbstractJdbc2ResultSetMetaData.

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] BUG #2559: why jdbc-driver AbstractJdbc2ResultSetMetaData. in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Re: [BUGS] BUG #2559: why jdbc-driver AbstractJdbc2ResultSetMetaData. - 08-04-2006 , 12:33 PM








On Tue, 1 Aug 2006, flash.xu wrote:

Quote:
Bug reference: 2559
PostgreSQL version: 8.1.4
Description: why jdbc-driver AbstractJdbc2ResultSetMetaData.
getTableName(int column) return ""
Details:

I'm using jdbc3 8.1 to build my java project.But when I use
ResultSetMetaData class to get table'name,the result is ""!
I check the jdbc8 8.1's source code,and found the
AbstractJdbc2ResultSetMetaData. getTableName(int column) return "".
Instead, the method of "getBaseTableName()" return the real table'name.
Similar,the method of"getColumnName()"return the column'lable,but the method
of"getColumnName()" return the real column'name.
please show why?thanks.
My project has been used Oracle and Mysql.It's my first to use PostgreSQL.

Please see the thread "Wrong column names in ResultSetMetaData"

http://archives.postgresql.org/pgsql...eads.php#00008

Kris Jurka


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.