Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected behaviour with nullish coalesce on UUID cast to object with top-level query parameter #7304

Open
Sikarii opened this issue May 4, 2024 · 0 comments

Comments

@Sikarii
Copy link
Contributor

Sikarii commented May 4, 2024

  • EdgeDB Version: 5.2+ddd8aa4
  • EdgeDB CLI Version: 5.1.0+fdf5320
  • OS Version: N/A

Steps to Reproduce:

  1. Run query below
  2. Observe that bad returns an empty set, despite the nullish coalesce
with
  id := <optional uuid>$id # Not provided via params
select {
  bad := <Item>id ?? <Item><uuid>"54f54828-08ce-11ef-9f4b-03801670d1a7",
  good := <Item><optional uuid>$id ?? <Item><uuid>"54f54828-08ce-11ef-9f4b-03801670d1a7"
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant