]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3960 Cross-project duplications fail on Postgres 8.3
authorSimon Brandhof <simon.brandhof@gmail.com>
Mon, 19 Nov 2012 21:38:08 +0000 (22:38 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Mon, 19 Nov 2012 21:38:54 +0000 (22:38 +0100)
sonar-core/src/main/resources/org/sonar/core/duplication/DuplicationMapper.xml

index 2f0af1b57e7c8a98afd67cb446bba7bafd802e7d..745816df744658db4d9367a73874ab61255a53b3 100644 (file)
@@ -4,7 +4,7 @@
 <mapper namespace="org.sonar.core.duplication.DuplicationMapper">
 
   <select id="selectCandidates" parameterType="map" resultType="DuplicationUnit">
-    SELECT DISTINCT to_blocks.hash hash, res.kee resourceKey, to_blocks.index_in_file indexInFile, to_blocks.start_line startLine, to_blocks.end_line endLine
+    SELECT DISTINCT to_blocks.hash as hash, res.kee as resourceKey, to_blocks.index_in_file as indexInFile, to_blocks.start_line as startLine, to_blocks.end_line as endLine
     FROM duplications_index to_blocks, duplications_index from_blocks, snapshots snapshot, projects res
     WHERE from_blocks.snapshot_id = #{resource_snapshot_id}
     AND to_blocks.hash = from_blocks.hash