Skip to content

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