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

Fix fallback generic with no query parameters #605

Merged

Conversation

greg-rychlewski
Copy link
Member

@greg-rychlewski greg-rychlewski commented May 4, 2024

I had a bug in the old code when no query parameters are present. 1..num_params returns a list of 2 values instead of empty list.

Also postgres doesn't like empty parentheses for these functions.

@greg-rychlewski greg-rychlewski merged commit 52e49a2 into elixir-ecto:master May 4, 2024
10 checks passed
@greg-rychlewski greg-rychlewski deleted the generic_explain_fix branch May 4, 2024 16:43
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.

None yet

2 participants