mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
兼容Oracle 10.x Driver
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@327 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -11,6 +11,7 @@ import javax.sql.DataSource;
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.apache.commons.dbcp.BasicDataSource;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import com.alibaba.druid.TestUtil;
|
||||
import com.alibaba.druid.pool.DruidDataSource;
|
||||
@@ -96,7 +97,9 @@ public class Oracle_Case3 extends TestCase {
|
||||
ResultSet rs = stmt.executeQuery("SELECT 1 FROM DUAL");
|
||||
rs.next();
|
||||
rs.close();
|
||||
Assert.isTrue(!stmt.isClosed());
|
||||
stmt.close();
|
||||
Assert.isTrue(stmt.isClosed());
|
||||
conn.close();
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
|
||||
Reference in New Issue
Block a user