I am trying to print an interpolated Slick2 SQL statement for debugging and all I get is the one with question marks e.g.
def query(name: String) = sql"SELECT MAX(age) FROM users WHERE name = $name".as[Int]
println(query("Bob").getStatement)
The above prints this:
SELECT MAX(age) FROM users WHERE name = ?
How can I make it print this:
SELECT MAX(age) FROM users WHERE name = 'Bob'
Note: This questions is NOT a duplicate of this