mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved WebURIStat & Proxy.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user