mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
optimized for oracle
This commit is contained in:
@@ -39,27 +39,27 @@ public class TestDruidOraclePreparedStatement extends TestCase {
|
||||
|
||||
Class.forName(JdbcUtils.getDriverClassName(jdbcUrl));
|
||||
|
||||
{
|
||||
Connection conn = dataSource.getConnection();
|
||||
// {
|
||||
// Connection conn = dataSource.getConnection();
|
||||
//
|
||||
// ResultSet metaRs = conn.getMetaData().getTables(null, "ALIBABA", null, new String[] { "TABLE" });
|
||||
// JdbcUtils.printResultSet(metaRs);
|
||||
// metaRs.close();
|
||||
//
|
||||
// conn.close();
|
||||
// }
|
||||
|
||||
ResultSet metaRs = conn.getMetaData().getTables(null, "ALIBABA", null, new String[] { "TABLE" });
|
||||
JdbcUtils.printResultSet(metaRs);
|
||||
metaRs.close();
|
||||
|
||||
conn.close();
|
||||
}
|
||||
|
||||
{
|
||||
Connection conn = dataSource.getConnection();
|
||||
Statement stmt = conn.createStatement();
|
||||
|
||||
ResultSet rs = stmt.executeQuery("SELECT * FROM WP_ORDERS");
|
||||
JdbcUtils.printResultSet(rs);
|
||||
rs.close();
|
||||
|
||||
stmt.close();
|
||||
conn.close();
|
||||
}
|
||||
// {
|
||||
// Connection conn = dataSource.getConnection();
|
||||
// Statement stmt = conn.createStatement();
|
||||
//
|
||||
// ResultSet rs = stmt.executeQuery("SELECT * FROM WP_ORDERS");
|
||||
// JdbcUtils.printResultSet(rs);
|
||||
// rs.close();
|
||||
//
|
||||
// stmt.close();
|
||||
// conn.close();
|
||||
// }
|
||||
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
Connection conn = dataSource.getConnection();
|
||||
|
||||
Reference in New Issue
Block a user