File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
ruby/ql/lib/codeql/ruby/frameworks Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,14 @@ module Mysql2 {
35
35
private DataFlow:: Node query ;
36
36
37
37
Mysql2Execution ( ) {
38
- exists ( Mysql2Connection mysql2Connection , DataFlow :: CallNode prepareCall |
38
+ exists ( Mysql2Connection mysql2Connection |
39
39
this = mysql2Connection .getAMethodCall ( "query" ) and query = this .getArgument ( 0 )
40
40
or
41
- prepareCall = mysql2Connection .getAMethodCall ( "prepare" ) and
42
- query = prepareCall .getArgument ( 0 ) and
43
- this = prepareCall .getAMethodCall ( "execute" )
41
+ exists ( DataFlow:: CallNode prepareCall |
42
+ prepareCall = mysql2Connection .getAMethodCall ( "prepare" ) and
43
+ query = prepareCall .getArgument ( 0 ) and
44
+ this = prepareCall .getAMethodCall ( "execute" )
45
+ )
44
46
)
45
47
}
46
48
You can’t perform that action at this time.
0 commit comments