Re: Invalid Column Length - Mailing list pgsql-jdbc

From Kevin Grittner
Subject Re: Invalid Column Length
Date
Msg-id 4CD0273002000025000371A8@gw.wicourts.gov
Whole thread Raw
In response to Invalid Column Length  (Perepelkin Andrew <perepelkin.work@gmail.com>)
List pgsql-jdbc
Perepelkin Andrew <perepelkin.work@gmail.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

pgsql-jdbc by date:

Previous
From: Perepelkin Andrew
Date:
Subject: Invalid Column Length
Next
From: Kris Jurka
Date:
Subject: Re: Invalid Column Length