Var only used in one side of disjunct

This commit is contained in:
Maiky
2023-05-15 15:09:44 +02:00
parent 6a3d995b35
commit f46620c455

View File

@@ -35,12 +35,14 @@ module Mysql2 {
private DataFlow::Node query;
Mysql2Execution() {
exists(Mysql2Connection mysql2Connection, DataFlow::CallNode prepareCall |
exists(Mysql2Connection mysql2Connection |
this = mysql2Connection.getAMethodCall("query") and query = this.getArgument(0)
or
prepareCall = mysql2Connection.getAMethodCall("prepare") and
query = prepareCall.getArgument(0) and
this = prepareCall.getAMethodCall("execute")
exists(DataFlow::CallNode prepareCall |
prepareCall = mysql2Connection.getAMethodCall("prepare") and
query = prepareCall.getArgument(0) and
this = prepareCall.getAMethodCall("execute")
)
)
}