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