]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6571 fix compatibility with mssql
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 2 Jun 2015 17:34:11 +0000 (19:34 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 2 Jun 2015 17:34:22 +0000 (19:34 +0200)
server/sonar-server/src/main/java/org/sonar/server/db/migrations/v52/FeedMetricsBooleans.java

index 27b75343e120e1e5fe733dfd261dcbaf499bd6da..bb97aa65a940f80ed820ace96c727f6ae7b5a92c 100644 (file)
@@ -32,7 +32,8 @@ public class FeedMetricsBooleans extends BaseDataChange {
 
   @Override
   public void execute(Context context) throws SQLException {
-    context.prepareUpsert("update metrics set OPTIMIZED_BEST_VALUE=?, HIDDEN=?, DELETE_HISTORICAL_DATA=? where user_managed=? or OPTIMIZED_BEST_VALUE is null or HIDDEN is null or DELETE_HISTORICAL_DATA is null")
+    context.prepareUpsert("update metrics set optimized_best_value=?, hidden=?, delete_historical_data=? " +
+      "where user_managed=? or optimized_best_value is null or hidden is null or delete_historical_data is null")
       .setBoolean(1, false)
       .setBoolean(2, false)
       .setBoolean(3, false)