HHH-8007 - PagingAndLockingTest#testNativeSql() fails on SQL Server

Patch and test for HHH-8007 JIRA ticket.
Link: https://hibernate.onjira.com/browse/HHH-8007

Regards,
Lukasz Antoniak