mirror of https://github.com/apache/activemq.git
Fixing broker DurableConsumerCloseAndReconnectTest, subscriptions were not being added to the result array.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376856 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
404c73bcc5
commit
96adbc3fbb
|
@ -499,6 +499,7 @@ public class DefaultJDBCAdapter implements JDBCAdapter {
|
|||
subscription.setSelector(rs.getString(1));
|
||||
subscription.setSubcriptionName(rs.getString(2));
|
||||
subscription.setClientId(rs.getString(3));
|
||||
rc.add(subscription);
|
||||
}
|
||||
|
||||
return (SubscriptionInfo[]) rc.toArray(new SubscriptionInfo[rc.size()]);
|
||||
|
@ -617,6 +618,11 @@ public class DefaultJDBCAdapter implements JDBCAdapter {
|
|||
s.setString(3,subscriptionName);
|
||||
printQuery(s,System.out);
|
||||
}
|
||||
|
||||
public void dumpTables(Connection c) throws SQLException {
|
||||
printQuery(c, "Select * from ACTIVEMQ_MSGS", System.out);
|
||||
printQuery(c, "Select * from ACTIVEMQ_ACKS", System.out);
|
||||
}
|
||||
|
||||
private void printQuery(Connection c, String query, PrintStream out) throws SQLException {
|
||||
printQuery(c.prepareStatement(query), out);
|
||||
|
|
Loading…
Reference in New Issue