Cant get VARCHAR column to maximum size

290 views
Skip to first unread message

Indrek Võitra

unread,
Sep 13, 2022, 5:52:46 AM9/13/22
to H2 Database
Hello!

I am migrating from 1.2 to 2.1 and want to avoid using BLOBS and migrate one column to varchar type.

H2 documentation mentions:
The allowed length is from 1 to 1,000,000,000 characters. 

Data stored in this field is  usually not very long, but in some very rare occations they can be up to 2 million characters.

Whatever i do, i cant get over 1048576  limit when creating table with character varying.


Is there flaw in documentation or i do something wrong?

Indrek

Evgenij Ryazanov

unread,
Sep 13, 2022, 7:56:01 AM9/13/22
to H2 Database
Hello.

Online documentation is actual only for the latest released version, currently it is 2.1.214. If you use some older version, you need to download its complete distribution in a ZIP archive, it includes documentation in HTML and PDF formats:

In H2 2.0.202–2.1.210 limit was 1,048,576 characters.

Indrek Võitra

unread,
Sep 14, 2022, 11:15:56 AM9/14/22
to H2 Database
Thanks a lot!
I had 2.1.210.

Reply all
Reply to author
Forward
0 new messages