Search in sources :

Example 11 with OracleExceptionSorter

use of com.alibaba.druid.pool.vendor.OracleExceptionSorter in project druid by alibaba.

the class OracleExceptionSorterTest_stmt_getMaxRows method setUp.

protected void setUp() throws Exception {
    Assert.assertEquals(0, JdbcStatManager.getInstance().getSqlList().size());
    dataSource = new DruidDataSource();
    dataSource.setExceptionSorter(new OracleExceptionSorter());
    dataSource.setDriver(new OracleMockDriver());
    dataSource.setUrl("jdbc:mock:xxx");
    dataSource.setPoolPreparedStatements(true);
    dataSource.setMaxOpenPreparedStatements(100);
}
Also used : OracleExceptionSorter(com.alibaba.druid.pool.vendor.OracleExceptionSorter) DruidDataSource(com.alibaba.druid.pool.DruidDataSource) OracleMockDriver(com.alibaba.druid.test.util.OracleMockDriver)

Example 12 with OracleExceptionSorter

use of com.alibaba.druid.pool.vendor.OracleExceptionSorter in project druid by alibaba.

the class OracleExceptionSorterTest_stmt_getMoreResults_1 method setUp.

protected void setUp() throws Exception {
    Assert.assertEquals(0, JdbcStatManager.getInstance().getSqlList().size());
    dataSource = new DruidDataSource();
    dataSource.setExceptionSorter(new OracleExceptionSorter());
    dataSource.setDriver(new OracleMockDriver());
    dataSource.setUrl("jdbc:mock:xxx");
    dataSource.setPoolPreparedStatements(true);
    dataSource.setMaxOpenPreparedStatements(100);
}
Also used : OracleExceptionSorter(com.alibaba.druid.pool.vendor.OracleExceptionSorter) DruidDataSource(com.alibaba.druid.pool.DruidDataSource) OracleMockDriver(com.alibaba.druid.test.util.OracleMockDriver)

Example 13 with OracleExceptionSorter

use of com.alibaba.druid.pool.vendor.OracleExceptionSorter in project druid by alibaba.

the class OracleExceptionSorterTest_stmt_getQueryTimeout method setUp.

protected void setUp() throws Exception {
    Assert.assertEquals(0, JdbcStatManager.getInstance().getSqlList().size());
    dataSource = new DruidDataSource();
    dataSource.setExceptionSorter(new OracleExceptionSorter());
    dataSource.setDriver(new OracleMockDriver());
    dataSource.setUrl("jdbc:mock:xxx");
    dataSource.setPoolPreparedStatements(true);
    dataSource.setMaxOpenPreparedStatements(100);
}
Also used : OracleExceptionSorter(com.alibaba.druid.pool.vendor.OracleExceptionSorter) DruidDataSource(com.alibaba.druid.pool.DruidDataSource) OracleMockDriver(com.alibaba.druid.test.util.OracleMockDriver)

Example 14 with OracleExceptionSorter

use of com.alibaba.druid.pool.vendor.OracleExceptionSorter in project druid by alibaba.

the class OracleExceptionSorterTest_closeConn_3 method setUp.

protected void setUp() throws Exception {
    Assert.assertEquals(0, JdbcStatManager.getInstance().getSqlList().size());
    dataSource = new DruidDataSource();
    dataSource.setExceptionSorter(new OracleExceptionSorter());
    dataSource.setDriver(new OracleMockDriver());
    dataSource.setUrl("jdbc:mock:xxx");
    dataSource.setPoolPreparedStatements(true);
    dataSource.setMaxOpenPreparedStatements(100);
}
Also used : OracleExceptionSorter(com.alibaba.druid.pool.vendor.OracleExceptionSorter) DruidDataSource(com.alibaba.druid.pool.DruidDataSource) OracleMockDriver(com.alibaba.druid.test.util.OracleMockDriver)

Example 15 with OracleExceptionSorter

use of com.alibaba.druid.pool.vendor.OracleExceptionSorter in project druid by alibaba.

the class OracleExceptionSorterTest_concurrent method setUp.

protected void setUp() throws Exception {
    Assert.assertEquals(0, JdbcStatManager.getInstance().getSqlList().size());
    dataSource = new DruidDataSource();
    dataSource.setExceptionSorter(new OracleExceptionSorter());
    dataSource.setDriver(new OracleMockDriver());
    dataSource.setUrl("jdbc:mock:xxx");
    dataSource.setPoolPreparedStatements(true);
    dataSource.setMaxOpenPreparedStatements(100);
    dataSource.setMaxActive(1);
    dataSource.setMaxWait(1000 * 100);
}
Also used : OracleExceptionSorter(com.alibaba.druid.pool.vendor.OracleExceptionSorter) DruidDataSource(com.alibaba.druid.pool.DruidDataSource) OracleMockDriver(com.alibaba.druid.test.util.OracleMockDriver)

Aggregations

OracleExceptionSorter (com.alibaba.druid.pool.vendor.OracleExceptionSorter)52 DruidDataSource (com.alibaba.druid.pool.DruidDataSource)50 OracleMockDriver (com.alibaba.druid.test.util.OracleMockDriver)50 SQLException (java.sql.SQLException)2