]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4366 Make SQL query cross-DBMS (handling of boolean column)
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 13 Mar 2014 15:48:39 +0000 (16:48 +0100)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 13 Mar 2014 15:48:39 +0000 (16:48 +0100)
sonar-core/src/main/resources/org/sonar/core/qualitygate/db/QualityGateConditionMapper.xml

index d709af2693dcbb84e27d03a43f6e4a5d4d42a93e..65200e4bedfb5aa5d1ac6f2b0dfafa1ecf4dd0b2 100644 (file)
@@ -39,7 +39,7 @@
 
   <delete id="deleteConditionsWithInvalidMetrics">
     delete from quality_gate_conditions
-    where metric_id not in (select id from metrics where enabled=true)
+    where metric_id not in (select id from metrics where enabled=${_true})
   </delete>
 
 </mapper>