@@ -13,12 +13,12 @@ Nette\Database\Helpers::loadFromFile($connection, __DIR__ . "/../files/{$driverN
1313
1414
1515Assert::same (
16- reformat ('SELECT * FROM [author] LIMIT 2 ' ),
16+ reformat ('SELECT * FROM [author] ORDER BY [author].[id] LIMIT 2 ' ),
1717 $ context ->table ('author ' )->limit (2 )->getSql ()
1818);
1919
2020Assert::same (
21- reformat ('SELECT * FROM [author] LIMIT 2 OFFSET 10 ' ),
21+ reformat ('SELECT * FROM [author] ORDER BY [author].[id] LIMIT 2 OFFSET 10 ' ),
2222 $ context ->table ('author ' )->limit (2 , 10 )->getSql ()
2323);
2424
@@ -28,24 +28,24 @@ Assert::same(
2828);
2929
3030Assert::same (
31- reformat ('SELECT * FROM [author] LIMIT 10 ' ),
31+ reformat ('SELECT * FROM [author] ORDER BY [author].[id] LIMIT 10 ' ),
3232 $ context ->table ('author ' )->page (1 , 10 )->getSql ()
3333);
3434
3535Assert::same (
36- reformat ('SELECT * FROM [author] LIMIT 0 ' ),
36+ reformat ('SELECT * FROM [author] ORDER BY [author].[id] LIMIT 0 ' ),
3737 $ context ->table ('author ' )->page (0 , 10 , $ count )->getSql ()
3838);
3939Assert::same (1 , $ count );
4040
4141Assert::same (
42- reformat ('SELECT * FROM [author] LIMIT 10 OFFSET 10 ' ),
42+ reformat ('SELECT * FROM [author] ORDER BY [author].[id] LIMIT 10 OFFSET 10 ' ),
4343 $ context ->table ('author ' )->page (2 , 10 , $ count )->getSql ()
4444);
4545Assert::same (1 , $ count );
4646
4747Assert::same (
48- reformat ('SELECT * FROM [author] LIMIT 2 OFFSET 2 ' ),
48+ reformat ('SELECT * FROM [author] ORDER BY [author].[id] LIMIT 2 OFFSET 2 ' ),
4949 $ context ->table ('author ' )->page (2 , 2 , $ count )->getSql ()
5050);
5151Assert::same (2 , $ count );
0 commit comments