RapGenius/is_paranoid — pull request #5 by a-warner (2014-05-22 01:20:35+00:00)
Title: If there is no conditions option, add a tautology

- If we're disabling IsParanoid, then we can't return an empty string
from the conditions proc. If we do, it creates an empty clause in the
sql fragment, e.g. ((("foos".bar_id = 123456) AND (())))), which is
not valid SQL.
- Replace that empty condition with a tautology, 1=1