]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2642 Support Oracle DB for cross-project CPD
authorEvgeny Mandrikov <mandrikov@gmail.com>
Mon, 31 Oct 2011 01:45:58 +0000 (05:45 +0400)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Mon, 31 Oct 2011 17:30:06 +0000 (21:30 +0400)
sonar-core/src/main/resources/org/sonar/persistence/model/DuplicationMapper-oracle.xml

index 659281dac7f44771bae9197468da57c50aa10aeb..b7f15344b498f865e3c24e860489f574e0656fd0 100644 (file)
@@ -18,7 +18,7 @@
 
   <insert id="insert" parameterType="DuplicationUnit" keyColumn="id" useGeneratedKeys="true">
     INSERT INTO duplications_index (id, snapshot_id, project_snapshot_id, hash, index_in_file, start_line, end_line)
-    VALUES (select DUPLICATIONS_INDEX_SEQ.nextval, #{snapshotId}, #{projectSnapshotId}, #{hash}, #{indexInFile}, #{startLine}, #{endLine})
+    VALUES (duplications_index_seq.NEXTVAL, #{snapshotId}, #{projectSnapshotId}, #{hash}, #{indexInFile}, #{startLine}, #{endLine})
   </insert>
 
 </mapper>