mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
6 lines
227 B
Rust
6 lines
227 B
Rust
// with SQLx
|
|
|
|
let prepared_query = "SELECT * FROM people WHERE firstname=?";
|
|
|
|
let _ = sqlx::query(prepared_query_1).bind(&remote_controlled_string).fetch_all(&mut conn).await?; // GOOD (prepared statement with bound parameter)
|