]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3755 fix IssueDAO select query
authorJulien Lancelot <julien.lancelot@gmail.com>
Wed, 10 Apr 2013 08:46:32 +0000 (10:46 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Wed, 10 Apr 2013 08:46:32 +0000 (10:46 +0200)
sonar-core/src/main/resources/org/sonar/core/issue/IssueMapper.xml

index f25dd584484f2433e5422ae8a904ae7d5db69f1e..4473441af8876473bf6b30fca407c38c1685ad6b 100644 (file)
         and (s.id=root.id or (s.root_snapshot_id=root.id and
         <choose>
           <when test="_databaseId == 'mssql'">
-            s.path LIKE root.path + root.id + '.%'
+            s.path LIKE root.path + CAST(root.id AS varchar(15)) + '.%'
           </when>
           <otherwise>
-            s.path LIKE root.path || CAST(root.id AS varchar(15)) || '.%'
+            s.path LIKE root.path || root.id || '.%'
           </otherwise>
         </choose>
         ))