From 8d0c331f184d7080a4a228f95615d0d5be8c4b77 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Fri, 14 Jun 2013 19:03:19 +0200 Subject: [PATCH] SONAR-4321 Fix issue on alias --- .../org/sonar/core/resource/ResourceMapper.xml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/sonar-core/src/main/resources/org/sonar/core/resource/ResourceMapper.xml b/sonar-core/src/main/resources/org/sonar/core/resource/ResourceMapper.xml index 3a3955aca9a..394c9d56b73 100644 --- a/sonar-core/src/main/resources/org/sonar/core/resource/ResourceMapper.xml +++ b/sonar-core/src/main/resources/org/sonar/core/resource/ResourceMapper.xml @@ -126,7 +126,8 @@ - select s.project_id from snapshots s, ( + select s.project_id + from snapshots s, ( select project_components.id as id, snapshot_components.id as sid, root_snapshot_components.project_id as root_project_id, @@ -139,10 +140,10 @@ ) authorized_projects on authorized_projects.root_project_id = root_snapshot_components.project_id - and ( project_components.kee=#{componentRootKey}) + and project_components.kee=#{componentRootKey} and project_components.enabled = ${_true} - ) as authorized_input_components + ) authorized_input_components and s.root_project_id = authorized_input_components.root_project_id and s.islast = ${_true} @@ -166,14 +167,6 @@ - - select p.id from projects p - - p.enabled=${_true} - and p.kee in #{componentKey} - - - insert into projects (name, long_name, description, scope, qualifier, kee, language, root_id, copy_resource_id, person_id, enabled, created_at) -- 2.39.5