Search in sources :

Example 11 with MySqlExceptionSorter

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

the class MySqlExceptionSorterTest_oceanbase method test_true.

public void test_true() throws Exception {
    MySqlExceptionSorter sorter = new MySqlExceptionSorter();
    SQLException exception = new SQLException("", "", -9000);
    Assert.assertTrue(sorter.isExceptionFatal(exception));
}
Also used : MySqlExceptionSorter(com.alibaba.druid.pool.vendor.MySqlExceptionSorter) SQLException(java.sql.SQLException)

Aggregations

MySqlExceptionSorter (com.alibaba.druid.pool.vendor.MySqlExceptionSorter)11 SQLException (java.sql.SQLException)11 MockDriver (com.alibaba.druid.mock.MockDriver)1 MockStatementBase (com.alibaba.druid.mock.MockStatementBase)1 DruidDataSource (com.alibaba.druid.pool.DruidDataSource)1 Connection (java.sql.Connection)1 ResultSet (java.sql.ResultSet)1 Properties (java.util.Properties)1