]> source.dussan.org Git - sonarqube.git/commitdiff
Fix PurgeDao for MySQL
authorSimon Brandhof <simon.brandhof@gmail.com>
Tue, 14 Feb 2012 09:48:35 +0000 (10:48 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Tue, 14 Feb 2012 09:48:35 +0000 (10:48 +0100)
sonar-core/src/main/resources/org/sonar/core/purge/PurgeVendorMapper-mysql.xml [new file with mode: 0644]
sonar-core/src/main/resources/org/sonar/core/purge/PurgeVendorMapper_mysql.xml [deleted file]

diff --git a/sonar-core/src/main/resources/org/sonar/core/purge/PurgeVendorMapper-mysql.xml b/sonar-core/src/main/resources/org/sonar/core/purge/PurgeVendorMapper-mysql.xml
new file mode 100644 (file)
index 0000000..f1d2cd8
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+
+<mapper namespace="org.sonar.core.purge.PurgeVendorMapper">
+
+  <delete id="deleteResourceReviewComments" parameterType="long">
+    delete from review_comments using reviews where review_comments.review_id=reviews.id and reviews.resource_id=#{id}
+  </delete>
+
+  <delete id="deleteResourceActionPlansReviews" parameterType="long">
+    delete from action_plans_reviews using action_plans where action_plans.id=action_plans_reviews.action_plan_id and action_plans.project_id=#{id}
+  </delete>
+
+</mapper>
+
diff --git a/sonar-core/src/main/resources/org/sonar/core/purge/PurgeVendorMapper_mysql.xml b/sonar-core/src/main/resources/org/sonar/core/purge/PurgeVendorMapper_mysql.xml
deleted file mode 100644 (file)
index f1d2cd8..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.sonar.core.purge.PurgeVendorMapper">
-
-  <delete id="deleteResourceReviewComments" parameterType="long">
-    delete from review_comments using reviews where review_comments.review_id=reviews.id and reviews.resource_id=#{id}
-  </delete>
-
-  <delete id="deleteResourceActionPlansReviews" parameterType="long">
-    delete from action_plans_reviews using action_plans where action_plans.id=action_plans_reviews.action_plan_id and action_plans.project_id=#{id}
-  </delete>
-
-</mapper>
-