I try to reproduce the example of SQL interpolation with the library ScalikeJDBC (here).
val member = sql"select id, name from members where id = ${id}"
println(member.statement)
But I get a weird result :
select id, name from members where id = ?
What I have missed ?
EDIT and ANSWER:
Mea culpa, I tried to debug why my sql query doesn't work with string interpolaiton, so I print the value of the query. I got this result but I didn't check that it was OK. The problem was that I had to use SQLSyntax.createUnsafely
on the string that I want to use for interpolation.