Live data from Hacker News

Show HN: Writing SQL expressions using Java syntax

objsql.com

11–14 of 14 posts

Re: Show HN: Writing SQL expressions using Java syntax

#11

    Member.execute(String.format("DELETE FROM %s WHERE name = 'Mary'", Member.TABLE_NAME));
That String.format looks dangerous, especially in a DELETE. Sure, it's a constant in this instance, but other examples use a parameterized ?, so this String.format jumps out.
Post reply on HN