Re:Making Wrong Code Look Wrong
by eru on Monday August 22, 2011 @04:35PM
(#2914009)
Do you treat SQL queries as strings in your code, or do you build something like an abstract syntax tree?
[ Parent
| on HN ]
Build them using a syntax builder framework, but it is possible to pass raw SQL strings in in exceptional circumstances. Obviously, the developer needs to be totally aware of the risks of this. Not ideal, but needed to solve a couple of problems.