Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix NegativeArraySizeException error #598

Closed
wants to merge 1 commit into from

Conversation

zzsmdfj
Copy link

@zzsmdfj zzsmdfj commented Mar 22, 2021

It will throw NegativeArraySizeException when result is very large by execute sql with connection.prepareStatement(sql).executeQuery()

The error stack:
error stack

@zhicwu
Copy link
Contributor

zhicwu commented Mar 22, 2021

Thanks @zzsmdfj for pointing this out. It seems safer to go with Integer.MAX_VALUE - 8 according to this.

Anyway, I got your idea and just merged the change into #596, which will be released in the coming days.

@zhicwu zhicwu closed this Mar 22, 2021
@zzsmdfj
Copy link
Author

zzsmdfj commented Mar 22, 2021

Thanks @zzsmdfj for pointing this out. It seems safer to go with Integer.MAX_VALUE - 8 according to this.

Anyway, I got your idea and just merged the change into #596, which will be released in the coming days.

ok。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants