-
Hi,
I'm trying to figure out what could go wrong with doing something like this. |
Beta Was this translation helpful? Give feedback.
Answered by
weiznich
Jun 28, 2024
Replies: 1 comment 1 reply
-
Prepared statements for queries issued via sql_query are not cached as described here: https://docs.diesel.rs/2.2.x/diesel/connection/statement_cache/index.html#a-primer-on-prepared-statement-caching-in-diesel That written: By using format! to construct your SQL queries you open the possibility for sql injections. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Datron
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prepared statements for queries issued via sql_query are not cached as described here: https://docs.diesel.rs/2.2.x/diesel/connection/statement_cache/index.html#a-primer-on-prepared-statement-caching-in-diesel
That written: By using format! to construct your SQL queries you open the possibility for sql injections.