pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roman Chervotkin <roman.chervotkin@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Invalid column display size. Cannot be less than zero
Date: Tue, 25 Jul 2006 19:18:17 +0400
Message-ID: <c1b06e90607250818p39aee483u3a3238ef47bc8a59@mail.gmail.com> (raw)
In-Reply-To: <1153824156.741368.110180@h48g2000cwc.googlegroups.com>
References: <1153824156.741368.110180@h48g2000cwc.googlegroups.com>

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.alerta@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
>

view thread (6+ messages)  latest in thread

Message-ID: <c1b06e90607250818p39aee483u3a3238ef47bc8a59@mail.gmail.com>
Permalink:  ../c1b06e90607250818p39aee483u3a3238ef47bc8a59@mail.gmail.com/
Also on:    postgresql.org/message-id/c1b06e90607250818p39aee483u3a3238ef47bc8a59@mail.gmail.com

 · 

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: roman.chervotkin@gmail.com
  Subject: Re: Invalid column display size. Cannot be less than zero
  In-Reply-To: <c1b06e90607250818p39aee483u3a3238ef47bc8a59@mail.gmail.com>
  References: <1153824156.741368.110180@h48g2000cwc.googlegroups.com> <c1b06e90607250818p39aee483u3a3238ef47bc8a59@mail.gmail.com>

* 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