Fixed bug growing the size of the FastStatementList when the capacity is exceeded.
parent
072d52178f
commit
b566002c0e
@ -0,0 +1,19 @@
|
||||
package com.zaxxer.hikari;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.zaxxer.hikari.performance.StubStatement;
|
||||
import com.zaxxer.hikari.util.FastStatementList;
|
||||
|
||||
public class TestFastStatementList
|
||||
{
|
||||
@Test
|
||||
public void testOverflow()
|
||||
{
|
||||
FastStatementList list = new FastStatementList();
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
list.add(new StubStatement());
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue