Skip to content

Commit

Permalink
Simplifying some code
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Apr 13, 2014
1 parent 485a6cc commit 2d54174
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Database/SqlserverCompiler.php
Expand Up @@ -55,14 +55,10 @@ class SqlserverCompiler extends QueryCompiler {
* @return string
*/
protected function _buildLimitPart($limit, $query) {
if ($limit === null) {
if ($limit === null || $query->clause('offset') === null) {
return '';
}

if ($query->clause('offset') === null) {
return;
}

return sprintf(' FETCH FIRST %d ROWS ONLY', $limit);
}

Expand Down

0 comments on commit 2d54174

Please sign in to comment.