]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4419 Replace SQL in by or
authorJulien Lancelot <julien.lancelot@gmail.com>
Thu, 18 Jul 2013 06:56:32 +0000 (08:56 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Thu, 18 Jul 2013 06:56:32 +0000 (08:56 +0200)
sonar-core/src/main/resources/org/sonar/core/resource/ResourceMapper.xml

index 3d0319a0e04e0c853b8d273ab24054a13a8303f4..d0978802a67ddf05113f0a621348ac2ddc1a2428 100644 (file)
     select * from projects p
     <where>
       <if test="qualifiers != null and qualifiers.size() > 0">
-        and p.qualifier in
-        <foreach item="qualifier" index="index" collection="qualifiers" open="(" separator="," close=")">#{qualifier}</foreach>
+        and <foreach item="qualifier" index="index" collection="qualifiers" open="(" separator=" or " close=")">p.qualifier=#{qualifier}
+      </foreach>
       </if>
       and p.enabled=${_true}
       and p.copy_resource_id is null