I'h getting problems with executing SQL query in Play 2.3 application and h2-memory db.
code where is a problem:
DB.withConnection { implicit c =>
Sql("").executeInsert()
}
Error(in InteliJ Sql is red marked)
anorm.Sql.type does not take parameters
Any ideas?
Whole class:
import play.api.Play.current
import play.api.db.DB
import anorm._
case class User(username: String, password: String) {
def save() = {
DB.withConnection { implicit c =>
SQL("").executeInsert()
}
}
}