diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-02-14 12:51:24 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-02-14 12:51:24 +0100 |
commit | af243b35f9abd5ae641b21febe58f20ec52b74ad (patch) | |
tree | 1c7bd46e9657d2dfd60be8b65f7c79644e638657 | |
parent | b88646bb38eb2d13eb7930068351211666be97e5 (diff) | |
download | sonarqube-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.xml | 8 |
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> |