4344454647484950515253
public void test_connect() throws Exception { String sql = "SELECT 1"; { DruidPooledConnection conn = dataSource.getConnection(); PreparedStatement pstmt = conn.prepareStatement(sql); pstmt.execute(); pstmt.close(); conn.close(); }
7576777879808182838485
public void connectionClosed(ConnectionEvent event) { } }); PreparedStatement stmt = conn.prepareStatement("select ?"); try { stmt.executeQuery(); } catch (SQLException e) { }