Skip to content

Commit

Permalink
SqlBuilder: applyLimit() is called always
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 21, 2015
1 parent 3cf4559 commit 48c7298
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Database/Table/SqlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,7 @@ public function buildSelectQuery($columns = NULL)
$queryJoins = $this->buildQueryJoins($joins);
$query = "{$querySelect} FROM {$this->delimitedTable}{$queryJoins}{$queryCondition}{$queryEnd}";

if ($this->limit !== NULL || $this->offset) {
$this->driver->applyLimit($query, $this->limit, $this->offset);
}
$this->driver->applyLimit($query, $this->limit, $this->offset);

return $this->tryDelimite($query);
}
Expand Down

0 comments on commit 48c7298

Please sign in to comment.