`SqliteError: near "(": syntax error` when using `notExists`
It seems like queries with
notExists
clauses add a pair of parentheses too many:
Am I doing something wrong or does someone know a workaround?4 Replies
There is an open issue for this. You can keep track there:
GitHub
[BUG]: SQLite WHERE EXISTS too many parentheses · Issue #1404 · dri...
What version of drizzle-orm are you using? 0.28.6 What version of drizzle-kit are you using? 0.19.13 Describe the Bug The following drizzle query using EXISTs in WHERE generates incompatible SQL fo...
As for a workaround, the where method accepts
sql
So you could do:
Thanks, in the meantime I also found https://github.com/drizzle-team/drizzle-orm/issues/1235 and came across the same workaround.
GitHub
[BUG]: SqliteError: near "(": syntax error on
query
where exists ...What version of drizzle-orm are you using? 0.28.6 What version of drizzle-kit are you using? No response Describe the Bug Final SQL has a pair redundant () inside where exists const items = await c...