Merge "Add Database::unionConditionPermutations()"