summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-02-14 12:51:24 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2012-02-14 12:51:24 +0100
commitaf243b35f9abd5ae641b21febe58f20ec52b74ad (patch)
tree1c7bd46e9657d2dfd60be8b65f7c79644e638657
parentb88646bb38eb2d13eb7930068351211666be97e5 (diff)
downloadsonarqube-af243b35f9abd5ae641b21febe58f20ec52b74ad.tar.gz
sonarqube-af243b35f9abd5ae641b21febe58f20ec52b74ad.zip
Fix PurgeDao for SQLServer - second attempt
-rw-r--r--sonar-core/src/main/resources/org/sonar/core/purge/PurgeVendorMapper-mssql.xml8
1 files changed, 6 insertions, 2 deletions
diff --git a/sonar-core/src/main/resources/org/sonar/core/purge/PurgeVendorMapper-mssql.xml b/sonar-core/src/main/resources/org/sonar/core/purge/PurgeVendorMapper-mssql.xml
index 7f086c79613..b47bf4f3213 100644
--- a/sonar-core/src/main/resources/org/sonar/core/purge/PurgeVendorMapper-mssql.xml
+++ b/sonar-core/src/main/resources/org/sonar/core/purge/PurgeVendorMapper-mssql.xml
@@ -4,11 +4,15 @@
<mapper namespace="org.sonar.core.purge.PurgeVendorMapper">
<delete id="deleteResourceReviewComments" parameterType="long">
- delete from review_comments rc inner join reviews r on rc.review_id=r.id where r.resource_id=#{id}
+ delete review_comments from review_comments
+ inner join reviews on review_comments.review_id=reviews.id
+ where reviews.resource_id=#{id}
</delete>
<delete id="deleteResourceActionPlansReviews" parameterType="long">
- delete from action_plans_reviews apr inner join action_plans ap on ap.id=apr.action_plan_id where ap.project_id=#{id}
+ delete action_plans_reviews from action_plans_reviews
+ inner join action_plans on action_plans.id=action_plans_reviews.action_plan_id
+ where action_plans.project_id=#{id}
</delete>
</mapper>