PagingAndLockingTest#testNativeSql on MSSQL
If only setFirstResult is used, this query results:
With only setMaxResults, this query results:
With both, the following:
That last query fails with the following exception:
I'm not sure which 'as' it's complaining about, nor am I sure exactly how that query is working.