Skip to content

Commit 5056ebf

Browse files
committed
Rust: Fix typo in one of the models.
1 parent 17741af commit 5056ebf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust/ql/lib/codeql/rust/frameworks/rusqlite.model.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extensions:
77
- ["<rusqlite::Connection>::execute_batch", "Argument[0]", "sql-injection", "manual"]
88
- ["<rusqlite::Connection>::prepare_cached", "Argument[0]", "sql-injection", "manual"]
99
- ["<rusqlite::Connection>::prepare", "Argument[0]", "sql-injection", "manual"]
10-
- [<rusqlite::Connection>::prepare_with_flags", "Argument[0]", "sql-injection", "manual"]
10+
- ["<rusqlite::Connection>::prepare_with_flags", "Argument[0]", "sql-injection", "manual"]
1111
- ["<rusqlite::Connection>::query_row", "Argument[0]", "sql-injection", "manual"]
1212
- ["<rusqlite::Connection>::query_row_and_then", "Argument[0]", "sql-injection", "manual"]
1313
- ["<rusqlite::Connection>::query_one", "Argument[0]", "sql-injection", "manual"]

rust/ql/test/library-tests/frameworks/rusqlite/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
4949
})?;
5050

5151
_ = connection.prepare_cached("SELECT id, name, age FROM person")?; // $ sql-sink
52-
_ = connection.prepare_with_flags("SELECT id, name, age FROM person", rusqlite::PrepFlags::empty())?; // $ MISSING: ql-sink
52+
_ = connection.prepare_with_flags("SELECT id, name, age FROM person", rusqlite::PrepFlags::empty())?; // $ sql-sink
5353
_ = connection.query_row_and_then("SELECT id, name, age FROM person", [], |row| { // $ sql-sink
5454
let row: &rusqlite::Row<'_> = row;
5555
let result: Result<i32, rusqlite::Error> = Ok(row.get(0)?); // $ database-read

0 commit comments

Comments
 (0)