Slick doesn't seem to support like clauses on int columns. The following code where Status.code is of int type doesn't seem to work. Would there be a workaround for this?
val query = for {
s <- Status if s.code like "1%"
} yield (s)
Slick doesn't seem to support like clauses on int columns. The following code where Status.code is of int type doesn't seem to work. Would there be a workaround for this?
val query = for {
s <- Status if s.code like "1%"
} yield (s)
Copyright © 2021 Jogjafile Inc.
Can you post your Status class definitation .If code is type column[Int] your code should be giving error as like works on column[string].
The below snippet works for doing a like on integer field.
This is data insert and querying part