aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-02 19:34:11 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-02 19:34:22 +0200
commitccacb8c8530bbcc51b9d0418988a630c212382d5 (patch)
tree6ed252df4116c1e9fc6a7a71ec84f8bfd9154f0d
parented3c9961770418b2cab50229cfa4b3ab826c009e (diff)
downloadsonarqube-ccacb8c8530bbcc51b9d0418988a630c212382d5.tar.gz
sonarqube-ccacb8c8530bbcc51b9d0418988a630c212382d5.zip
SONAR-6571 fix compatibility with mssql
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/db/migrations/v52/FeedMetricsBooleans.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/db/migrations/v52/FeedMetricsBooleans.java b/server/sonar-server/src/main/java/org/sonar/server/db/migrations/v52/FeedMetricsBooleans.java
index 27b75343e12..bb97aa65a94 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/db/migrations/v52/FeedMetricsBooleans.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/db/migrations/v52/FeedMetricsBooleans.java
@@ -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)