#3457 increase max length of VAR* types by grandinj · Pull Request #3464 · h2database/h2database

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@grandinj

Copy link

Contributor

No description provided.

* encoding data fields when storing rows.
*/
public static final int MAX_STRING_LENGTH = 1024 * 1024;
public static final int MAX_STRING_LENGTH = 1024 * 1024 * 1024;
Copy link

Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be 1_000_000_000 as specified in documentation.

1024^3 is actually larger than actual limit of java.lang.String since Java 9 (for strings with at least one character with code larger than 255).

to match the new documented value
there is no way to test this without using up so much memory we'd probably get flagged for abusing CI

@grandinj grandinj merged commit e254352 into h2database:master

Mar 30, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@katzyn katzyn katzyn left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@grandinj @katzyn