Skip to content
This repository was archived by the owner on May 11, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,6 @@ class DestinationDAOImpl extends BaseDAOImpl implements DestinationDAO {
.append( dbMgr.getTableName( MessageDAO.TABLE_NAME_PREFIX ) )
.append( " WHERE " )
.append( MessageDAO.DESTINATION_ID_COLUMN ).append( " = ?)" )
.append( " AND NOT EXISTS (SELECT * FROM " )
.append( dbMgr.getTableName( BrokerDAO.TABLE_NAME_PREFIX ) )
.append( " WHERE " )
.append( BrokerDAO.ID_COLUMN ).append( " <> ? " )
.append( " AND " )
.append( BrokerDAO.STATE_COLUMN ).append( " = " )
.append( BrokerState.I_OPERATING ).append( ")" )
.toString();

selectSQL = new StringBuffer(128)
Expand Down Expand Up @@ -556,7 +549,6 @@ public boolean delete( Connection conn, DestinationUID dstUID,
pstmt = dbMgr.createPreparedStatement( conn, sql );
pstmt.setString( 1, destName );
pstmt.setString( 2, destName );
pstmt.setString( 3, dbMgr.getBrokerID() );
} else {
sql = deleteSQL;
pstmt = dbMgr.createPreparedStatement( conn, sql );
Expand Down