From: Julien Lancelot Date: Fri, 14 Jun 2013 17:03:19 +0000 (+0200) Subject: SONAR-4321 Fix issue on alias X-Git-Tag: 3.7~483 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=219b51f0f50420aef965b0261e61b1d5b4e5323a;p=sonarqube.git SONAR-4321 Fix issue on alias --- 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)