mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
0.1.16
This commit is contained in:
@@ -19,5 +19,5 @@ public interface VERSION {
|
||||
|
||||
public final static int MajorVersion = 0;
|
||||
public final static int MinorVersion = 1;
|
||||
public final static int RevisionVersion = 15;
|
||||
public final static int RevisionVersion = 16;
|
||||
}
|
||||
|
||||
@@ -1237,6 +1237,6 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
||||
|
||||
@Override
|
||||
public String getVersion() {
|
||||
return VERSION.MajorVersion + "." + VERSION.MinorVersion + "." + VERSION.RevisionVersion + "-2011-11-23 13:39";
|
||||
return VERSION.MajorVersion + "." + VERSION.MinorVersion + "." + VERSION.RevisionVersion + "-2011-12-01 12:13";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ public class Case0 extends TestCase {
|
||||
private String user;
|
||||
private String password;
|
||||
private String driverClass;
|
||||
private int initialSize = 10;
|
||||
private int initialSize = 1;
|
||||
private int minPoolSize = 1;
|
||||
private int maxPoolSize = 2;
|
||||
private int maxActive = 2;
|
||||
@@ -58,6 +58,7 @@ public class Case0 extends TestCase {
|
||||
dataSource.setPoolPreparedStatements(true);
|
||||
dataSource.setUsername(user);
|
||||
dataSource.setPassword(password);
|
||||
dataSource.setFilters("stat");
|
||||
|
||||
final int LOOP_COUNT = 1000 * 1000;
|
||||
|
||||
@@ -67,6 +68,8 @@ public class Case0 extends TestCase {
|
||||
|
||||
for (int i = 0; i < LOOP_COUNT; ++i) {
|
||||
Connection conn = dataSource.getConnection();
|
||||
|
||||
conn.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
|
||||
|
||||
Assert.assertEquals(initialSize, dataSource.getCreateCount());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user