pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: xavier.marquis@cegetel.net
To: pgsql-jdbc@postgresql.org
Subject: SQLException: Cannot be less than zero
Date: Wed, 13 Jul 2005 19:22:06 +0200
Message-ID: <004501c587cf$652523c0$cda90554@freeman> (raw)

Hi,
  
I use PostgreSQL 8.0.3 and following associated drivers : 
  
postgresql-8.0-311.jdbc2.jar
postgresql-8.0-311.jdbc2ee.jar
postgresql-8.0-311.jdbc3.jar
 
I want to use CachedRowSetImpl to populate one row in the following table :
  
CREATE TABLE "Form2"
(
    form2member3 int4,
    form2member5 int8[],
)
WITHOUT OIDS;

The second column (an array of bigint)  seems to cause the following 
exception when try to populate :
  
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:679)
at com.sun.rowset.CachedRowSetImpl.populate(CachedRowSetImpl.java:597)
at com.sun.rowset.internal.CachedRowSetReader.readData(CachedRowSetReader.java:170)
at com.sun.rowset.CachedRowSetImpl.execute(CachedRowSetImpl.java:736)
at ...
at MainTester.main(MainTester.java:41)
  
  
After reading the only few related subjects, I can't find any 
solution that I be able to use.
(Nebojsa Vasiljevic made a patch but didn't say how to do it ...)

Has someone yet met and solved this unexpected problem (even momently) ?
Otherwise, Is there another way to deal with variable-length lists  ?

view thread (2+ messages)  latest in thread

Message-ID: <004501c587cf$652523c0$cda90554@freeman>
Permalink:  ../004501c587cf$652523c0$cda90554@freeman/
Also on:    postgresql.org/message-id/004501c587cf$652523c0$cda90554@freeman

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: xavier.marquis@cegetel.net
  Subject: Re: SQLException: Cannot be less than zero
  In-Reply-To: <004501c587cf$652523c0$cda90554@freeman>
  References: <004501c587cf$652523c0$cda90554@freeman>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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