]> source.dussan.org Git - sonarqube.git/commitdiff
Fix query
authorJulien Lancelot <julien.lancelot@gmail.com>
Wed, 28 Aug 2013 11:12:38 +0000 (13:12 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Wed, 28 Aug 2013 11:12:38 +0000 (13:12 +0200)
sonar-core/src/main/resources/org/sonar/core/resource/ResourceMapper.xml

index 18cbecb6dc13b9b33d20fd985f6ed816739fb8b5..3cec051123ac629f80c0cc29975ea409516795e7 100644 (file)
   </select>
 
   <sql id="selectProjectsByQualifiersQuery">
-    select <include refid="resourceColumns"/> from projects p
+    select p.* from projects p
     inner join snapshots s on s.project_id=p.id
     <where>
       <if test="qualifiers != null and qualifiers.size() > 0">
     </where>
   </sql>
 
-  <select id="selectGhostsProjects" parameterType="map" resultType="Resource">
-    select <include refid="resourceColumns"/> from projects p
+  <select id="selectGhostsProjects" parameterType="map" resultMap="resourceResultMap">
+    select p.* from projects p
     left join (<include refid="selectProjectsByQualifiersQuery" />) availableProjects on availableProjects.id=p.id
     <where>
       and availableProjects.id is null