Complains:
image is of type Array[Byte]
I have this:
def insertCustomerImage(ci: CustomerImage) = {
val fmt: DateTimeFormatter = DateTimeFormat.forPattern("yyyy-MM-dd");
(Q.u +"insert into cust_images (id, customer_id, image, created) values (" +?
ci.id +
"," +? ci.customer_id +"," +?
ci.image +", timestamp with time zone '" + fmt.print(new DateTime()) +"')").execute
}
Seq(
CustomerImage("CIM1", "customer_1", Array (128.toByte)),
CustomerImage("CIM2", "customer_2", Array (213356546.toByte)),
CustomerImage("CIM3", "customer_3", Array (156546546.toByte))
).foreach(insertCustomerImage)
}
1\it-classes...
[error] C:\Code\smart-check\services\src\it\scala\CustomerIntegrationTest.scala:
56: could not find implicit value for parameter p: scala.slick.jdbc.SetParameter
[Array[Byte]]
[error] "," +? ci.customer_id +"," +? ci.image +", timestamp with time
zone '" + fmt.print(new DateTime()) +"')").execute
[error] ^
[error] one error found