Skip to content

Commit d8b0fbd

Browse files
committed
C#: Disable dynamic join ordering for select predicate
1 parent 979ae67 commit d8b0fbd

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎csharp/ql/lib/semmle/code/csharp/commons/QualifiedName.qll‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ module QualifiedName<QualifiedNameInputSig Input> {
173173
* Holds if declaration `d` has name `name` and is defined in type `type`
174174
* with namespace `namespace`.
175175
*/
176+
pragma[no_dynamic_join_order]
176177
predicate hasQualifiedName(Declaration d, string namespace, string type, string name) {
177178
hasQualifiedName(d.getDeclaringType(), namespace, type) and
178179
(

‎csharp/ql/src/Language Abuse/SimplifyBoolExpr.ql‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ predicate negatedOperators(string op, string negated) {
108108
}
109109

110110
/** Holds if replacing `expr` with `operatorName` could call an enclosing operator. */
111+
pragma[no_dynamic_join_order]
111112
private predicate couldCallEnclosingOperator(LogicalNotExpr expr, string operatorName) {
112113
exists(BinaryOperation binary, Operator enclosingOperator |
113114
binary = expr.getOperand() and

0 commit comments

Comments
 (0)