Skip to content

Commit

Permalink
MSSQL driver: Added subselect alias in applyLimit.
Browse files Browse the repository at this point in the history
  • Loading branch information
vlki authored and dg committed Nov 2, 2009
1 parent b00257c commit 22b62ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dibi/drivers/mssql.php
Expand Up @@ -256,7 +256,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 . ') t';
}

if ($offset) {
Expand Down

0 comments on commit 22b62ee

Please sign in to comment.