Skip to content

fix: select from values error - #1165

Open
KnorpelSenf wants to merge 1 commit into
porsager:masterfrom
KnorpelSenf:fix-undefined
Open

fix: select from values error#1165
KnorpelSenf wants to merge 1 commit into
porsager:masterfrom
KnorpelSenf:fix-undefined

Conversation

@KnorpelSenf

Copy link
Copy Markdown

When taking value arrays, we should test if there are multiple rows passed to sql, not if the first row contains multiple elements. Otherwise we only catch 2D arrays but not arrays of objects.

Fixes #1073.

This fixes the issue in my project but I did not take the time to set up a local postgres instance in order to run the tests. Please review carefully, this code is pretty dense and I had less time for this fix than I wish I had.

@KnorpelSenf

Copy link
Copy Markdown
Author

What can I do to get this merged?

@quintal-william

Copy link
Copy Markdown

I also have this problem, would be great to have it merged! 😄

@olee

olee commented Jul 28, 2026

Copy link
Copy Markdown

Same here. This makes working with more complex CTEs really difficult

@KnorpelSenf

Copy link
Copy Markdown
Author

@olee have you already tested this in your project? Perhaps another external review helps convince the admins to smash that merge button.

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.

SELECT FROM VALUES incorrectly throws an error about undefined values

3 participants