Issue #2986334 by amateescu, alexpott: Add a way to enforce an empty result set for a database condition query