mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Rust: Fix typo in one of the models.
This commit is contained in:
@@ -7,7 +7,7 @@ extensions:
|
||||
- ["<rusqlite::Connection>::execute_batch", "Argument[0]", "sql-injection", "manual"]
|
||||
- ["<rusqlite::Connection>::prepare_cached", "Argument[0]", "sql-injection", "manual"]
|
||||
- ["<rusqlite::Connection>::prepare", "Argument[0]", "sql-injection", "manual"]
|
||||
- [<rusqlite::Connection>::prepare_with_flags", "Argument[0]", "sql-injection", "manual"]
|
||||
- ["<rusqlite::Connection>::prepare_with_flags", "Argument[0]", "sql-injection", "manual"]
|
||||
- ["<rusqlite::Connection>::query_row", "Argument[0]", "sql-injection", "manual"]
|
||||
- ["<rusqlite::Connection>::query_row_and_then", "Argument[0]", "sql-injection", "manual"]
|
||||
- ["<rusqlite::Connection>::query_one", "Argument[0]", "sql-injection", "manual"]
|
||||
|
||||
@@ -49,7 +49,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
})?;
|
||||
|
||||
_ = connection.prepare_cached("SELECT id, name, age FROM person")?; // $ sql-sink
|
||||
_ = connection.prepare_with_flags("SELECT id, name, age FROM person", rusqlite::PrepFlags::empty())?; // $ MISSING: ql-sink
|
||||
_ = connection.prepare_with_flags("SELECT id, name, age FROM person", rusqlite::PrepFlags::empty())?; // $ sql-sink
|
||||
_ = connection.query_row_and_then("SELECT id, name, age FROM person", [], |row| { // $ sql-sink
|
||||
let row: &rusqlite::Row<'_> = row;
|
||||
let result: Result<i32, rusqlite::Error> = Ok(row.get(0)?); // $ database-read
|
||||
|
||||
Reference in New Issue
Block a user