zio / zio-quill

Compile-time Language Integrated Queries for Scala
https://zio.dev/zio-quill
Apache License 2.0
2.15k stars 348 forks source link

`entity` in `schema` accept runtime values but have no effect #501

Closed jilen closed 6 years ago

jilen commented 8 years ago

Version: (e.g. 0.8.1-SNAPSHOT) Module: (e.g. quill-core)

Expected behavior

  val suffix = "_100"
  val q = quote(query[Order].schema(_.entity("order" + suffix)))
  db.run(q)

Should either report failure or change table name

Actual behavior

Compiles ok but table name not changed

@getquill/maintainers

beikern commented 8 years ago

Is this issue #373 related?

gustavoamigo commented 8 years ago

@beikern In someway, yes. The error report should happen and should be better.

fwbrasil commented 6 years ago

closing in favor of https://github.com/getquill/quill/issues/373