Skip to content

Use query binding instead of interpolation - #72

Merged
josevalim merged 1 commit into
elixir-ecto:mainfrom
mhanberg:query-binds
Aug 10, 2026
Merged

Use query binding instead of interpolation#72
josevalim merged 1 commit into
elixir-ecto:mainfrom
mhanberg:query-binds

Conversation

@mhanberg

@mhanberg mhanberg commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

This patch switches the queries to using bind parameters instead of EEx interpolation.

This will make it safer to use these queries in applications like Phoenix LiveDashboard and also
utilize the arguments (which it currently doesn't).

There shouldn't be any user facing change to this patch, but should improve the security posture.

@pawurb pawurb closed this Aug 7, 2026
@mhanberg

mhanberg commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

@josevalim i opened this just before the repo was archived and transferred, and I'd like to have this considered for merging.

LMKWYT

@josevalim josevalim reopened this Aug 10, 2026
@josevalim

Copy link
Copy Markdown
Member

Please rebase! Is this compatible with the dashboard?

@mhanberg

Copy link
Copy Markdown
Contributor Author

Please rebase! Is this compatible with the dashboard?

Yes, doesn't change any public API but I will triple check.

@josevalim
josevalim merged commit 287ba0d into elixir-ecto:main Aug 10, 2026
7 checks passed
@josevalim

Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

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.

3 participants