3 ms·
The nice thing about this design is that the correct thing is also easier than the incorrect thing: var q = DB."SELECT foo FROM bar WHERE a = \{b}"; // P
by mike_hearn 3y ago
The nice thing about this design is that the correct thing is also easier than the incorrect thing:
var q = DB."SELECT foo FROM bar WHERE a = \{b}"; // PreparedStatement?
var results = conn.execute(q); // ResultSet
is shorter and easier to write than the non-safe alternative.
That said, I wonder how often people are writing queries out by hand like that these days vs using ORMs or jOOQ.