Re: Invalid Column Length

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Perepelkin Andrew" <perepelkin(dot)work(at)gmail(dot)com>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Invalid Column Length
Date: 2010-11-02 19:58:56
Message-ID: 4CD0273002000025000371A8@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Perepelkin Andrew <perepelkin(dot)work(at)gmail(dot)com> wrote:

> Is there any workaround exist?

Use a maximum length on your varchar declarations?:

CREATE TABLE applications
(
id character varying(10000000) NOT NULL,
"name" character varying(10000000) NOT NULL,
"version" character varying(10000000) NOT NULL,
)

Of course, if you don't intend to support ten million characters for
any of those, you could use a smaller number....

-Kevin

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2010-11-02 20:02:36 Re: Invalid Column Length
Previous Message Perepelkin Andrew 2010-11-02 15:08:15 Invalid Column Length