Add a \r\n on the expected form too

This commit is contained in:
Vlad Mihalcea 2016-05-19 17:26:29 +03:00 committed by Chris Cranford
parent 2315a5fcbf
commit 1223683192
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public class SQLServer2005DialectTestCase extends BaseUnitTestCase {
final String query = "select E.fieldA,E.fieldB\r\nFROM Employee E WHERE E.firstName = :firstName";
assertEquals(
"WITH query AS (SELECT inner_query.*, ROW_NUMBER() OVER (ORDER BY CURRENT_TIMESTAMP) as __hibernate_row_nr__ FROM ( " +
"select E.fieldA as page0_,E.fieldB as page1_" + System.lineSeparator() +
"select E.fieldA as page0_,E.fieldB as page1_\r\n" +
"FROM Employee E WHERE E.firstName = :firstName ) inner_query ) SELECT page0_, page1_ FROM query " +
"WHERE __hibernate_row_nr__ >= ? AND __hibernate_row_nr__ < ?",
dialect.getLimitHandler().processSql( query, toRowSelection( 1, 25 ) )