bug fixed for proxy.

This commit is contained in:
wenshao
2017-07-13 11:14:59 +08:00
parent 7a953ec00a
commit 586d5c2211
@@ -110,6 +110,9 @@ public class PreparedStatementProxyImpl extends StatementProxyImpl implements Pr
if (parametersSize >= parameters.length) {
int oldCapacity = parameters.length;
int newCapacity = oldCapacity + (oldCapacity >> 1);
if (newCapacity == 0) {
newCapacity = 4;
}
parameters = Arrays.copyOf(parameters, newCapacity);
}