Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a3d995 commit f46620cCopy full SHA for f46620c
1 file changed
ruby/ql/lib/codeql/ruby/frameworks/Mysql2.qll
@@ -35,12 +35,14 @@ module Mysql2 {
35
private DataFlow::Node query;
36
37
Mysql2Execution() {
38
- exists(Mysql2Connection mysql2Connection, DataFlow::CallNode prepareCall |
+ exists(Mysql2Connection mysql2Connection |
39
this = mysql2Connection.getAMethodCall("query") and query = this.getArgument(0)
40
or
41
- prepareCall = mysql2Connection.getAMethodCall("prepare") and
42
- query = prepareCall.getArgument(0) and
43
- this = prepareCall.getAMethodCall("execute")
+ exists(DataFlow::CallNode prepareCall |
+ prepareCall = mysql2Connection.getAMethodCall("prepare") and
+ query = prepareCall.getArgument(0) and
44
+ this = prepareCall.getAMethodCall("execute")
45
+ )
46
)
47
}
48
0 commit comments