Skip to content

Commit

Permalink
bug fixed for proxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Jul 13, 2017
1 parent 7a953ec commit 586d5c2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ void setParameter(int jdbcIndex, JdbcParameter parameter) {
if (parametersSize >= parameters.length) {
int oldCapacity = parameters.length;
int newCapacity = oldCapacity + (oldCapacity >> 1);
if (newCapacity == 0) {
newCapacity = 4;
}

parameters = Arrays.copyOf(parameters, newCapacity);
}
Expand Down

0 comments on commit 586d5c2

Please sign in to comment.