Skip to content

Commit 5b50a82

Browse files
committed
Rust: Clarify the doc on the two models a little.
1 parent 1d03384 commit 5b50a82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust/ql/lib/codeql/rust/Concepts.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ module RemoteSource {
105105
}
106106

107107
/**
108-
* A data-flow node that constructs a SQL statement.
108+
* A data-flow node that constructs a SQL statement (for later execution).
109109
*
110110
* Often, it is worthy of an alert if a SQL statement is constructed such that
111111
* executing it would be a security risk.
@@ -133,10 +133,10 @@ module SqlConstruction {
133133
}
134134

135135
/**
136-
* A data-flow node that executes SQL statements.
136+
* A data-flow node that constructs and executes SQL statements.
137137
*
138138
* If the context of interest is such that merely constructing a SQL statement
139-
* would be valuable to report, consider using `SqlConstruction`.
139+
* would be valuable to report, consider also using `SqlConstruction`.
140140
*
141141
* Extend this class to refine existing API models. If you want to model new APIs,
142142
* extend `SqlExecution::Range` instead.

0 commit comments

Comments
 (0)