Bug in "PreparedStatementSpy#dumpedSql()"
Brought to you by:
arthur_blake
A PreparedStatement like the following won't be processed properly in "PreparedStatementSpy#dumpedSql()":
"SELECT count(*) FROM users WHERE lastname NOT IN ('?') AND firstname=?"
Expected Result:
"SELECT count(*) FROM users WHERE lastname NOT IN ('?') AND firstname=1"
Actual Result:
"SELECT count(*) FROM users WHERE lastname NOT IN ('1') AND firstname=?"
Note:
the question mark is inside a string literal and therefore it must not be taken as an argument for the query.