jdbc bug - Mailing list pgsql-admin

From Tim Holloway
Subject jdbc bug
Date
Msg-id 38977CBF.EF06295@southeast.net
Whole thread Raw
List pgsql-admin
Postgresql v6.5.2 - postgresql.jar

The ResultSet metadata function getColumnDisplaySize() is returning the number of characters in the column's name.

I don't THINK SO.....

1. The JavaDocs say it's supposed to be the "the column's normal max width in chars". I take this as the DATA width,
not
the name width. After all:

2. It REALLY screws up Symantec's wizard-generated code when a column named "foo" is loaded with a 25-character street
address. An uncaught exception is thrown saying the column is only 3 characters wide.

3. If I actually wanted to know that, I could just use the length function on the getColumnName() string.

pgsql-admin by date:

Previous
From: Trever Adams
Date:
Subject: PAM authentication
Next
From: "R. K Street"
Date:
Subject: UNICODE 2.x and UTF-8 Support