improved WebURIStat & Proxy.

This commit is contained in:
wenshao
2017-07-13 02:04:11 +08:00
parent b7d0dfa760
commit 7a953ec00a
3 changed files with 9 additions and 4 deletions
@@ -108,7 +108,10 @@ public class PreparedStatementProxyImpl extends StatementProxyImpl implements Pr
parametersSize = jdbcIndex;
}
if (parametersSize >= parameters.length) {
parameters = Arrays.copyOf(parameters, parametersSize + 16);
int oldCapacity = parameters.length;
int newCapacity = oldCapacity + (oldCapacity >> 1);
parameters = Arrays.copyOf(parameters, newCapacity);
}
parameters[index] = parameter;