Skip to content

sqlx::query().bind() is not binding the values in my query #2695

Answered by wezm
Sammyalhashe asked this question in Questions
Discussion options

You must be logged in to vote

In postgres you have to use $1, $2 etc for bind params. https://www.postgresql.org/docs/16/sql-prepare.html See also the note on bind:

bind parameters that appear in the query (? for most SQL flavors, $1 .. $N for Postgres)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Sammyalhashe
Comment options

Answer selected by Sammyalhashe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants