Unix Technical Forum

SQLException: Cannot be less than zero

This is a discussion on SQLException: Cannot be less than zero within the Pgsql Patches forums, part of the PostgreSQL category; --> 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 ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 12:40 AM
xavier.marquis@cegetel.net
 
Posts: n/a
Default SQLException: Cannot be less than zero

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.setColumnDispl aySize(RowSetMetaDataImpl.java:267)
at com.sun.rowset.CachedRowSetImpl.initMetaData(Cache dRowSetImpl.java:679)
at com.sun.rowset.CachedRowSetImpl.populate(CachedRow SetImpl.java:597)
at com.sun.rowset.internal.CachedRowSetReader.readDat a(CachedRowSetReader.java:170)
at com.sun.rowset.CachedRowSetImpl.execute(CachedRowS etImpl.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 ?



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 12:40 AM
Andrew Dunstan
 
Posts: n/a
Default Re: SQLException: Cannot be less than zero


This is completely the wrong list to ask this question - you need to ask
on the lists at

http://jdbc.postgresql.org/lists.html

cheers

andrew


xavier.marquis@cegetel.net wrote:

> 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.setColumnDispl aySize(RowSetMetaDataImpl.java:267)
> at com.sun.rowset.CachedRowSetImpl.initMetaData(Cache dRowSetImpl.java:679)
> at com.sun.rowset.CachedRowSetImpl.populate(CachedRow SetImpl.java:597)
> at
> com.sun.rowset.internal.CachedRowSetReader.readDat a(CachedRowSetReader.java:170)
> at com.sun.rowset.CachedRowSetImpl.execute(CachedRowS etImpl.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 ?
>
>
>



---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:18 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com