diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-11-05 15:01:14 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-11-05 16:09:04 +0100 |
commit | af66bd7b20a5efb5f6f2b73c0fe2adcad93b59b6 (patch) | |
tree | a9944c149b46231a67f1a2f15608efbecd2f537e /sonar-core | |
parent | 5f44c1eacebe6d57d7bac2fbf80d69841698d7b0 (diff) | |
download | sonarqube-af66bd7b20a5efb5f6f2b73c0fe2adcad93b59b6.tar.gz sonarqube-af66bd7b20a5efb5f6f2b73c0fe2adcad93b59b6.zip |
SONAR-5838 Migration of custom rules without parameter values is failing on Oracle
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/persistence/migration/v45/Migration45Mapper.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/persistence/migration/v45/Migration45Mapper.java b/sonar-core/src/main/java/org/sonar/core/persistence/migration/v45/Migration45Mapper.java index 4f78491095a..a6c41647f4c 100644 --- a/sonar-core/src/main/java/org/sonar/core/persistence/migration/v45/Migration45Mapper.java +++ b/sonar-core/src/main/java/org/sonar/core/persistence/migration/v45/Migration45Mapper.java @@ -19,10 +19,7 @@ */ package org.sonar.core.persistence.migration.v45; -import org.apache.ibatis.annotations.Insert; -import org.apache.ibatis.annotations.Param; -import org.apache.ibatis.annotations.Result; -import org.apache.ibatis.annotations.Select; +import org.apache.ibatis.annotations.*; import java.util.Date; import java.util.List; @@ -53,9 +50,11 @@ public interface Migration45Mapper { @Insert("INSERT INTO rules_parameters (rule_id, name, param_type, default_value, description)" + " VALUES (#{ruleId}, #{name}, #{type}, #{defaultValue}, #{description})") + @Options(useGeneratedKeys = false) void insertRuleParameter(RuleParameter ruleParameter); @Insert("UPDATE rules SET updated_at=#{date} WHERE id=#{id}") + @Options(useGeneratedKeys = false) void updateRuleUpdateAt(@Param("id") Integer ruleId, @Param("date") Date updatedAt); } |