Skip to content

Commit

Permalink
Attempt to fix up tests on SQLserver.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 10, 2014
1 parent 43339ed commit 87d6537
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/TestCase/Database/Driver/SqlserverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function testSelectLimitOldServer() {
->from('articles')
->offset(10);
$expected = 'SELECT * FROM (SELECT id, title, (ROW_NUMBER() OVER (ORDER BY (SELECT NULL))) AS [_cake_page_rownum_] ' .
'FROM articles) AS _cake_paging_ ' .
'FROM articles) _cake_paging_ ' .
'WHERE _cake_paging_._cake_page_rownum_ > :c0';
$this->assertEquals($expected, $query->sql());

Expand All @@ -192,7 +192,7 @@ public function testSelectLimitOldServer() {
->order(['id'])
->offset(10);
$expected = 'SELECT * FROM (SELECT id, title, (ROW_NUMBER() OVER (ORDER BY id)) AS [_cake_page_rownum_] ' .
'FROM articles) AS _cake_paging_ ' .
'FROM articles) _cake_paging_ ' .
'WHERE _cake_paging_._cake_page_rownum_ > :c0';
$this->assertEquals($expected, $query->sql());

Expand All @@ -204,7 +204,7 @@ public function testSelectLimitOldServer() {
->limit(10)
->offset(50);
$expected = 'SELECT * FROM (SELECT id, title, (ROW_NUMBER() OVER (ORDER BY id)) AS [_cake_page_rownum_] ' .
'FROM articles WHERE title = :c0) AS _cake_paging_ ' .
'FROM articles WHERE title = :c0) _cake_paging_ ' .
'WHERE (_cake_paging_._cake_page_rownum_ > :c1 AND _cake_paging_._cake_page_rownum_ <= :c2)';
$this->assertEquals($expected, $query->sql());
}
Expand Down

0 comments on commit 87d6537

Please sign in to comment.