Skip to content

Commit

Permalink
Fix whitespace problem in last fix
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Jan 9, 2012
1 parent eb29d4d commit 98424cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Platforms/MsSqlPlatform.php
Expand Up @@ -647,7 +647,7 @@ protected function doModifyLimitQuery($query, $limit, $offset = null)
}

if ($offset == 0) {
$query = preg_replace('/^(SELECT\s(DISTINCT)?)/i', '\1 TOP ' . $count . ' ', $query);
$query = preg_replace('/^(SELECT\s(DISTINCT\s)?)/i', '\1TOP ' . $count . ' ', $query);
} else {
$orderby = stristr($query, 'ORDER BY');

Expand Down

0 comments on commit 98424cc

Please sign in to comment.