7 messages in org.postgresql.pgsql-jdbcRe: Invalid column display size. Cann...
FromSent OnAttachments
alanJul 25, 2006 3:42 am 
surabhi.ahujaJul 25, 2006 4:26 am 
alanJul 25, 2006 5:03 am 
Roman ChervotkinJul 25, 2006 8:17 am 
Kris JurkaJul 25, 2006 9:33 am 
alanJul 25, 2006 11:44 pm 
Kris JurkaJul 26, 2006 8:42 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Invalid column display size. Cannot be less than zeroActions...
From:Roman Chervotkin (roma@gmail.com)
Date:Jul 25, 2006 8:17:54 am
List:org.postgresql.pgsql-jdbc

Hi alan.

I guess you should cast your db table column type from varchar/text to varchar(n).

Roman.

On 25 Jul 2006 03:42:36 -0700, alan <a.al@mainfield.com> wrote:

Hi all!

I'm using postgresql-8.1-407.jdbc3.jar.

The following code: CachedRowSet cachedRowSet = new CachedRowSetImpl(); cachedRowSet.populate(resultSet);

raise the following exception: java.sql.SQLException: Invalid column display size. Cannot be less than zero at javax.sql.rowset.RowSetMetaDataImpl.setColumnDisplaySize( RowSetMetaDataImpl.java:267) at com.sun.rowset.CachedRowSetImpl.initMetaData(CachedRowSetImpl.java:702) at com.sun.rowset.CachedRowSetImpl.populate(CachedRowSetImpl.java :620) at com.mainfield.test.TestJoinRowSet.run(TestJoinRowSet.java:47) at com.mainfield.test.TestJoinRowSet.main(TestJoinRowSet.java:71)

Last informations available about this issue it's on this mailing list one year ago. Someone has news about this issue?

Many thanks! Regards.

---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster