Skip to content

Conversation

charithe
Copy link

@charithe charithe commented Dec 6, 2024

Currently, sqlc errors out when it encounters the multi-argument version of the UNNEST function. This is because the function is not marked as variadic. Instead, the argument type is defined as anymultirange.

Fixes #3507

Currently, `sqlc` errors out when it encounters the multi-argument
version of the `UNNEST` function. This is because the function is not
marked as variadic. Instead, the argument type is defined as
[`anymultirange`](https://www.postgresql.org/docs/current/extend-type-system.html#EXTEND-TYPES-POLYMORPHIC).

Fixes sqlc-dev#3507

Signed-off-by: Charith Ellawala <[email protected]>
Signed-off-by: Charith Ellawala <[email protected]>
@charithe
Copy link
Author

charithe commented Dec 6, 2024

Not sure why the managed-db tests fail and how to go about debugging them 🤔

Signed-off-by: Charith Ellawala <[email protected]>
@StevenACoffman
Copy link
Contributor

@kyleconroy Do you have a chance to review this PR? I believe this works well and would go nicely with some recent improvements.

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

Successfully merging this pull request may close these issues.

UNNEST can't handle multiple arrays
2 participants