Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Where clause "not in" with an empty array always returns false #274

Open
germancollado opened this issue May 7, 2021 · 0 comments
Open

Comments

@germancollado
Copy link

germancollado commented May 7, 2021

Version: 2.1.12

await db
  .select(table.id)
  .from(table)
  .where(
    lf.op.not(
      table.id.in([])
    )
  )
  .exec()

Repro: https://codepen.io/colladoger/pen/oNopPJG

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant