Invalid Column Length - Mailing list pgsql-jdbc

From Perepelkin Andrew
Subject Invalid Column Length
Date
Msg-id AANLkTi=kJcMSPGiZGxRkwAs3FzCXB701e0Ok9JKE4KTd@mail.gmail.com
Whole thread Raw
Responses Re: Invalid Column Length  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Re: Invalid Column Length  (Kris Jurka <books@ejurka.com>)
List pgsql-jdbc
Hello,

I am using Liquibase with postgres JDBC driver postgresql-8.4-702.jdbc4.jar
PostgreSQL - 8.4.4
My table structure, for example, is
CREATE TABLE applications
(
  id character varying NOT NULL,
  "name" character varying NOT NULL,
  "version" character varying NOT NULL,
)

When i try export my database structure to the Liquibase script it makes column with length 2147483647.
            <column name="id" type="VARCHAR(10485760)">
                <constraints nullable="false" primaryKey="true" primaryKeyName="applications_pkey"/>
            </column>
Maximum length of type character varying is 10485760.
Generated script is broken.

I looked at Liquibase code and found that ResultSet.getInt("COLUMN_SIZE") returns 2147483647 when length not set implicitly.

Is this a bug?
Is there any workaround exist?

Thank You!




pgsql-jdbc by date:

Previous
From: Lew
Date:
Subject: Re: Exception in DriverManager.getConnection creates multiple connections in SYN_SEND state
Next
From: "Kevin Grittner"
Date:
Subject: Re: Invalid Column Length