Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
egormakarov
· 2y ago · 0 comments
This will produce broken SQL on empty clauses list. Very strange.
Comments
[–]
freilanzer
2y ago
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.
[–]
paperplatter
2y ago
The easiest fix for this is the "WHERE 1=1" or "WHERE true"