Hello,
Slick 2.1 w/ Postgresql 9.4 w/ latest driver
1. How to pass a byte array via StaticQuery.update ?
2. How to retrieve a byte array via StaticQuery.query ?
example update query (truncated to relevant part, it's a writable cte):
val u = StaticQuery.update[(Int, Int, Array[Byte])](]]("WITH new_values (id, name, data) as ( values (?, ?, ?) ), ... ")
db.withTransaction{ implicit s =>
u(id, name, byteArraydata).execute
}
[error] could not find implicit value for parameter pconv: scala.slick.jdbc.SetParameter[(Int, Int, Array[Byte])]
[error] val u = StaticQuery.update[(Int, Int,Array[Byte])](sql)
[error] ^
Thank you!