I need to log prepared queries in groovy
To prevent sql injections and the ability to autocomplete quotes for string values โโ(this is important), I use the following construct:
String name = "ะะตัั" Integer status = 1 def query = 'UPDATE my_tbl SET status=? WHERE name=?'; sql.execute (query, [status, name]) How can I get a prepared request with substituted parameters? Maybe there are other ways to solve this problem?