edgedb-js icon indicating copy to clipboard operation
edgedb-js copied to clipboard

Certain nested unlessConflict queries fail at runtime with: `Expr or its aliases used outside of declared 'WITH' block scope`

Open scotttrinh opened this issue 2 years ago • 0 comments

Minimal reproduction repo: https://github.com/freeatnet/repro-unless-conflict-issue/blob/main/src/pages/api/testcase.ts

There seems to be something causing a scope mismatch with the insert expression vs the insert unless conflict expression. I'm able to reproduce this in our main test suite as well.

scotttrinh avatar Jul 05 '23 17:07 scotttrinh