Unions with value lists #2137
Closed
richardTowers
started this conversation in
General
Replies: 1 comment 1 reply
-
Thanks for the report. This is a bug with a fairly simple fix: ec34d09 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It's possible (at least in postgres) to UNION together VALUES expressions. For example:
In Sequel, this doesn't seem to be possible:
I'm not sure whether this is user error on my part, an intentional limitation, or a bug.
I don't have a practical use case where this would be useful, but I was trying to recreate the recursive CTE example from the postgres docs:
I think this should be:
... but this returns
1
instead of5050
. Looking at the SQL, it's because it's missed the UNION, so the CTE just has VALUES(1) as the entire expression.Beta Was this translation helpful? Give feedback.
All reactions