Hi guys,
I'm trying to use a value of String type as part of the SQLinterpolation but simple quotation marks are always added automatically:
val dbName = "myDatabase"
NamedDB(JDBCPoolName) autoCommit { implicit session =>
sql"""CREATE DATABASE ${dbName}""".update().apply()
}
The next exception is launched:
SQL execution failed (Reason: ERROR: syntax error at or near "$1" Position: 17): CREATE DATABASE 'myDatabase'
Any idea?