In Play framework 2.0, I'm trying to load a real (i.e. single precision float) type column from PostgreSQL using a row parser like this:
case class Foo(bar: Float)
object Foo {
def all = DB.withConnection { implicit c =>
SQL("SELECT * FROM foo").as(fooParser *)
}
val fooParser = {
get[Float]("bar") map {
case bar => Foo(bar)
}
}
}
This generates an error: could not find implicit value for parameter extractor: anorm.Column[Float]
When using double precision types everything works fine. Is it somehow possible to use single precision floats with Anorm?