Skip to content

Commit

Permalink
Fixes issue #558 by avoiding running query that won't have any master…
Browse files Browse the repository at this point in the history
…RecordIds to filter by

Objects like ContentDocumentLink have implementation restrictions that prohibit empty query parameters.
  • Loading branch information
douglascayers authored Nov 14, 2017
1 parent df55c57 commit f453f23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rolluptool/src/classes/LREngine.cls
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,9 @@ public class LREngine {
**/
public abstract class QueryExecutor {
public virtual List<SObject> query(String query, Set<Id> masterIds) {
if ( masterIds == null || masterIds.isEmpty() ) {
return new List<SObject>();
}
return Database.query(query);
}
}
Expand All @@ -678,4 +681,4 @@ public class LREngine {
}
}

}
}

0 comments on commit f453f23

Please sign in to comment.