We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a18e0b3 commit a9983fdCopy full SHA for a9983fd
javascript/ql/src/semmle/javascript/frameworks/SQL.qll
@@ -145,11 +145,9 @@ private module Postgres {
145
/** Gets a data flow node referring to a Postgres client. */
146
DataFlow::SourceNode client() { result = client(DataFlow::TypeTracker::end()) }
147
148
- private DataFlow::SourceNode clientOrPool() { result = client() or result = pool() }
149
-
150
/** A call to the Postgres `query` method. */
151
private class QueryCall extends DatabaseAccess, DataFlow::MethodCallNode {
152
- QueryCall() { this = clientOrPool().getAMethodCall("query") }
+ QueryCall() { this = [client(), pool()].getAMethodCall("query") }
153
154
override DataFlow::Node getAQueryArgument() { result = getArgument(0) }
155
}
0 commit comments