Skip to content

Syntax error at end of input (? specifier) #3048

Closed Answered by mehcode
mr-far asked this question in Q&A
Discussion options

You must be logged in to vote

Please refer to https://docs.rs/sqlx/latest/sqlx/macro.query.html#query-arguments

Note that each database has its own method of query arguments. Given the error message, my guess is you're using Postgres and want to use $1 instead.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mehcode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants