Hacker News new | ask | show | jobs
by egormakarov 635 days ago
This will produce broken SQL on empty clauses list. Very strange.
1 comments

You're quite right, but this is easily fixed. That doesn't change my question, since something like this is much easier that the other logic.
The easiest fix for this is the "WHERE 1=1" or "WHERE true"