]> source.dussan.org Git - sonarqube.git/commitdiff
Fix incorrect SQL for Oracle and MsSQL
authorEric Hartmann <hartmann.eric@gmail.com>
Fri, 26 Oct 2018 06:12:00 +0000 (08:12 +0200)
committerSonarTech <sonartech@sonarsource.com>
Fri, 26 Oct 2018 18:20:59 +0000 (20:20 +0200)
server/sonar-db-dao/src/main/resources/org/sonar/db/rule/RuleMapper.xml

index 920726f8b0f203c31e9057d9cf92a64a91d3610a..1c976aacead866d6536a0103135ebbfcdb0721ab 100644 (file)
     rules r
     <include refid="outerJoinRulesMetadata"/>
     where
-      r.status != 'REMOVED' and r.is_external is false and r.is_template is false
+      r.status != 'REMOVED' and r.is_external=${_false} and r.is_template=${_false}
       and r.rule_type in <foreach collection="types" item="type" separator="," open="(" close=")">#{type, jdbcType=INTEGER}</foreach>
       and r.language in <foreach collection="languages" item="language" separator="," open="(" close=")">#{language, jdbcType=VARCHAR}</foreach>
   </select>