News for hackers. Stuff that matters.
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?
Re:Making Wrong Code Look Wrong by al_james on Tuesday August 23, 2011 @06:53PM (#2918703)
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.