laszlocsontos/liferay-portal — pull request #12 by sammso (2013-08-14 17:07:12+00:00)
Title: LPS-39031 - test to reproduce column order issue.

This is the test that I was talking about It is not for DB2Dialect but for QueryUtil.

When you run this

ant test-class -Dclass=QueryUtilTest

You will get

java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Integer on two tests.

And that was the reason I made reordering the ROW NUMBER column.