aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/src/main/resources
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-05-24 14:18:11 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-05-24 14:18:21 +0200
commitd7044e004d89d54e7912b2cdac0ce4b56a42f3e8 (patch)
tree1f77ad03cc2bdf63e7bb8ac10c0c7aa9f2924f76 /sonar-core/src/main/resources
parent147633993d037d2c39623e06c3d66e1b61662734 (diff)
downloadsonarqube-d7044e004d89d54e7912b2cdac0ce4b56a42f3e8.tar.gz
sonarqube-d7044e004d89d54e7912b2cdac0ce4b56a42f3e8.zip
SONAR-4301 Fix sql query
Diffstat (limited to 'sonar-core/src/main/resources')
-rw-r--r--sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml7
1 files changed, 1 insertions, 6 deletions
diff --git a/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml b/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml
index 5a57c926597..08509871f2f 100644
--- a/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml
+++ b/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml
@@ -271,14 +271,9 @@
<if test="query.createdBefore() != null">
and i.issue_creation_date &lt; #{query.createdBefore}
</if>
- <if test="_databaseId == 'mssql' or _databaseId == 'oracle' ">
- and rownum &lt;= #{maxResults}
- </if>
</where>
order by i.id
- <if test="_databaseId != 'mssql' and _databaseId != 'oracle' ">
- limit #{maxResults}
- </if>
+ limit #{maxResults}
</sql>
</mapper>