Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSQL `is` and query params #1733
Comments
weiznich
added
the
question
label
May 25, 2018
This comment has been minimized.
|
Diesel basically passes the raw sql string without any change to the database, so this seems to be a restriction in postgresql itself or libpq. (So nothing diesel could do much about). (For future questions: Our Gitter room is a better place to ask questions |
weiznich
closed this
May 25, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kamek-pf commentedMay 25, 2018
I'm playing with
sql_query, here's the structure I'm trying to deserialize :Rust query looks like this :
SQL query looks like this :
Everything works fine with the above query, the following however, doesn't work :
I get a
DatabaseError(__Unknown, "syntax error at or near \"$1\"")Hardcoding the value works though :