Add a \r\n on the expected form too
This commit is contained in:
parent
2315a5fcbf
commit
1223683192
|
@ -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";
|
final String query = "select E.fieldA,E.fieldB\r\nFROM Employee E WHERE E.firstName = :firstName";
|
||||||
assertEquals(
|
assertEquals(
|
||||||
"WITH query AS (SELECT inner_query.*, ROW_NUMBER() OVER (ORDER BY CURRENT_TIMESTAMP) as __hibernate_row_nr__ FROM ( " +
|
"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 " +
|
"FROM Employee E WHERE E.firstName = :firstName ) inner_query ) SELECT page0_, page1_ FROM query " +
|
||||||
"WHERE __hibernate_row_nr__ >= ? AND __hibernate_row_nr__ < ?",
|
"WHERE __hibernate_row_nr__ >= ? AND __hibernate_row_nr__ < ?",
|
||||||
dialect.getLimitHandler().processSql( query, toRowSelection( 1, 25 ) )
|
dialect.getLimitHandler().processSql( query, toRowSelection( 1, 25 ) )
|
||||||
|
|
Loading…
Reference in New Issue