<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 rc from review_comments rc, reviews r where rc.review_id=r.id and r.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 apr from action_plans_reviews apr, action_plans ap where ap.id=apr.action_plan_id and ap.project_id=#{id}
</delete>
</mapper>