Invalid Sql for Paging when Subquery contains Order By clause using MsSql2005Dialect

Description

When using the MSSql2005Dialect a paginq query that also has a subquery with an order by statement will product invalid sql.

The problem is that the code to transform the sql query into a paging query looks for the index of the last order by clause in the sql statement. If the main query does not have an order by statement it will use the index of the order by statement for the subquery. This then causes the code to produce invalid sql.

Environment

None

Attachments

2

Activity

Show:

Fabio Maulo May 21, 2009 at 10:45 PM

Thanks.

Jesse May 20, 2009 at 2:40 PM

Uploading test and patch

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created May 20, 2009 at 11:26 AM
Updated July 22, 2009 at 7:21 AM
Resolved May 21, 2009 at 10:45 PM
Who's Looking?