Unsafe conversion from untyped value to statement parameter.
Unsafe conversion from untyped value to statement parameter. Value will be passed using setObject.
It's not recommanded to use it as it can hide conversion issue.
// For backward compatibility import anorm.features.anyToStatement val d = new java.util.Date() val params: Seq[NamedParameter] = Seq("mod" -> d, "id" -> "idv") // Values as Any as heterogenous SQL("UPDATE item SET last_modified = {mod} WHERE id = {id}"). on(params:_*) // date and string passed with setObject, rather than // setDate and setString.
(Since version 2.3.0) Do not passed parameter as untyped/Any value
Conversion for parameter with untyped named.
Conversion for parameter with untyped named.
// For backward compatibility import anorm.features.parameterWithUntypedName val untyped: Any = "name" SQL("SELECT * FROM Country WHERE {p}").on(untyped -> "val")
(Since version 2.3.0) Use typed name for parameter, either string or symbol
Activable features