Browse files

MSSQL2005 applyLimit fixed

Conflicts:
	dibi/drivers/mssql2005.php
	dibi/drivers/mssql2005.reflector.php
  • Loading branch information...
1 parent 10fdecf commit 16b254fce1142c0ca9e6dbf86de609f898079406 @whipsterCZ whipsterCZ committed with Dec 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 dibi/drivers/mssql2005.php
View
2 dibi/drivers/mssql2005.php
@@ -300,7 +300,7 @@ public function applyLimit(&$sql, $limit, $offset)
{
// offset support is missing
if ($limit >= 0) {
- $sql = 'SELECT TOP ' . (int) $limit . ' * FROM (' . $sql . ')';
+ $sql = 'SELECT TOP ' . (int) $limit . ' * FROM (' . $sql . ') AS T ';
}
if ($offset) {

0 comments on commit 16b254f

Please sign in to comment.