涂名雷
涂名雷
Well, assigning to an URL instead of a segment name, enable use to declare otherwise before or after other when declarations, instead of only after, since we obviously want to...
You can try ``` scala val userId : Int = 1 posts.filter(post => userId === post.userIds.any).result // or val userId : Int = 1 posts.filter(post => post.userIds @> userId).result ```...
Hi @premosystems, you need provide more details. I can't determine what happened on your side from current info.
Sorry, made some minor mistake. Change to this will work: ``` scala /** Find matching companies */ def find(userId: Int): Future[Seq[Company]] = db.run(companies.filter(company => company.userIds @> List(userId)).result) //or /** Find...
In fact, check into source codes and test cases, you can avoid this problem. ;-)
Well, there's another issue in your [codes](https://github.com/premosystems/slick-pg/blob/master/examples/play-slick-example/app/dao/ComputersDAO.scala#L62). You added one more field in case class `Company`, but you forgot to fill it in `Company(id, name, props)`. _Forgot to remind you...
@NupurKothare you can do it like this: define your profile like [this](https://github.com/tminglei/slick-pg/blob/master/src/test/scala/com/github/tminglei/slickpg/PgArraySupportSuite.scala#L20), and then [import](https://github.com/tminglei/slick-pg/blob/master/src/test/scala/com/github/tminglei/slickpg/PgArraySupportSuite.scala#L51) it.
It's supported, you can check [here](https://github.com/tminglei/slick-pg/blob/master/core/src/test/scala/com/github/tminglei/slickpg/PgAggFuncSupportSuite.scala#L54) for test cases.
@markstock7 I added a test case for `column[List[scala.math.BigDecimal]`, it looks ok. pls see above commit for details.
@JethroMV are you using H2 driver? But slick-pg used pgjdbc driver's interface (check [here](https://github.com/tminglei/slick-pg/blob/868f366619/core/src/main/scala/com/github/tminglei/slickpg/lobj/LargeObjectSupport.scala#L25) and [here](https://github.com/tminglei/slick-pg/blob/868f366619/core/src/main/scala/com/github/tminglei/slickpg/lobj/LargeObjectStreamingDBIOAction.scala#L28)).