]> source.dussan.org Git - sonarqube.git/commitdiff
Fix PurgeDao for MySQL - new attempt
authorSimon Brandhof <simon.brandhof@gmail.com>
Tue, 14 Feb 2012 11:03:39 +0000 (12:03 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Tue, 14 Feb 2012 11:04:07 +0000 (12:04 +0100)
sonar-core/src/main/resources/org/sonar/core/purge/PurgeVendorMapper-mysql.xml

index d3449ac862222f8e46d2d50b3071aff843d8ecbd..69578003f58539e3a6d8d4016a9fdd389f628477 100644 (file)
@@ -4,11 +4,11 @@
 <mapper namespace="org.sonar.core.purge.PurgeVendorMapper">
 
   <delete id="deleteResourceReviewComments" parameterType="long">
-    delete rc from review_comments rc, reviews r where rc.review_id=r.id and r.resource_id=#{id}
+    delete rc from review_comments as rc, reviews as r where rc.review_id=r.id and r.resource_id=#{id}
   </delete>
 
   <delete id="deleteResourceActionPlansReviews" parameterType="long">
-    delete apr from action_plans_reviews apr, action_plans ap where ap.id=apr.action_plan_id and ap.project_id=#{id}
+    delete apr from action_plans_reviews as apr, action_plans as ap where ap.id=apr.action_plan_id and ap.project_id=#{id}
   </delete>
 
 </mapper>