nosferatu-man
Ars Praefectus
I've never seen the WHERE 1=1 thing before, but if your optimizer isn't smart enough to make a tautology into a no-op, you have bigger problems.[url=http:/civis/viewtopic.php?p=29366397#p29366397:2a4trr79 said:Ravensroke[/url]":2a4trr79]
Edit: Response to all the SQL nazis above: "Premature optimization is the root of all evil"; an extra 1=1 statement isn't going the be the bottleneck that kills your app.