shuyangzhou/liferay-portal — pull request #369 by sammso (2013-08-13 18:55:33+00:00)
Title: LPS-38959

Hi Shuyang,

Fix to QueryUtil to handle start and end parameters if those are out of range to be handled . At issue LPS-37841 those values where -1 and 0.

This is my second pull request to you regarding LPS-37841. LPS-38959 is sub task of LPS-37841. I did divide the LPS-37841 subtask since there where 3 different issues causing the problem and they are top of each other on call hierarchy, I decided to fix all of them and handle them on separate issues. Other two sub tasks are LPS-38956 and LPS-38960.

1. commit 00e9d3a2f3b43548bb5ff203f068efca3da81321 has fix for the issue to handle when start or end are not at range.
2. commit 0ba386cdd4766cd9a2b82262c67db0853bd0efbf has integration test QueryUtil.list method. The integration test does not work with DB2Dialect until LPS-38956 commit change has been done 859dc284305fbef04445c56d98ddd56448f778db .. integration test is still runnable with MySQL.

I have tested this issue and it is also resolving the LPS-37841.