Skip to content

Commit 10196fa

Browse files
committed
Java: Disable dynamic join ordering for select predicate
1 parent 979ae67 commit 10196fa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎java/ql/lib/semmle/code/java/Expr.qll‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ private predicate primitiveOrString(Type t) {
134134
* See JLS v8, section 15.28 (Constant Expressions).
135135
*/
136136
class CompileTimeConstantExpr extends Expr {
137+
pragma[no_dynamic_join_order]
137138
CompileTimeConstantExpr() {
138139
primitiveOrString(this.getType()) and
139140
(

0 commit comments

Comments
 (0)