diff options
author | Benjamin Campomenosi <benjamin.campomenosi@sonarsource.com> | 2023-04-11 12:10:35 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-04-12 20:03:18 +0000 |
commit | 1b12a6829dc81c1cfa2a59c3e1d644c3cc9c90ab (patch) | |
tree | 30c1409f43b4c74425f1fc2450cd4c2d7d7a6ab1 | |
parent | e2f9521853d00b470147688220ec78761a1fcadf (diff) | |
download | sonarqube-1b12a6829dc81c1cfa2a59c3e1d644c3cc9c90ab.tar.gz sonarqube-1b12a6829dc81c1cfa2a59c3e1d644c3cc9c90ab.zip |
SONAR-18860 fix condition in query for ComponentMapper#selectByKeysAndBranchOrPr
-rw-r--r-- | server/sonar-db-dao/src/main/resources/org/sonar/db/component/ComponentMapper.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-db-dao/src/main/resources/org/sonar/db/component/ComponentMapper.xml b/server/sonar-db-dao/src/main/resources/org/sonar/db/component/ComponentMapper.xml index 12e5de7b724..70ad9b92fdf 100644 --- a/server/sonar-db-dao/src/main/resources/org/sonar/db/component/ComponentMapper.xml +++ b/server/sonar-db-dao/src/main/resources/org/sonar/db/component/ComponentMapper.xml @@ -126,7 +126,7 @@ AND pb.branch_type = 'PULL_REQUEST' </when> <otherwise> - AND (pb.uuid is null or pb.is_main = ${_true}) + AND (pb.is_main = ${_true} OR p.qualifier IN ('VW', 'SVW') OR (p.qualifier = 'TRK' AND p.scope = 'FIL')) </otherwise> </choose> </select> |