dbTalk Databases Forums  

Re: [BUGS] BUG #1656: ResultSetMetaData.getColumnDisplaySize()

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


Discuss Re: [BUGS] BUG #1656: ResultSetMetaData.getColumnDisplaySize() in the mailing.database.pgsql-bugs forum.



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

Default Re: [BUGS] BUG #1656: ResultSetMetaData.getColumnDisplaySize() - 05-10-2005 , 02:35 PM








On Tue, 10 May 2005, Sergio Lob wrote:

Quote:
Bug reference: 1656
PostgreSQL version: 8.0.1
Description: ResultSetMetaData.getColumnDisplaySize() returns value
-1
Details:

ResultSetMetaData.getColumnDisplaySize() returns value -1 for several
columns of answer set generated by DatabaseMetaData.getTables() method.
ResultSetMetaData.getColumnDisplaySize() returns -1 for any column that
has an unknown size. Consider the REMARKS column of getTables(). This
data comes from the system's pg_description.description column which is of
type "text". There is no defined length for this, so we have decided to
return -1.

Quote:
Additionally, I don't understand why the data type of column 1 is described
as "OTHER", as opposed to all the other columns, which are of type "VARCHAR"
(attained through ResultSetMetaData.getColumnType() method).

TABLE_CAT is generated by an untyped "SELECT NULL", we should probably
cast this to name, or report the currently connected database name here.

Kris Jurka

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)


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.