Skip to content

Commit

Permalink
Fixed space after SKIP #9
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias authored Nov 17, 2016
1 parent 8893a3f commit b3095db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function buildOrderByAndLimit($sql, $orderBy, $limit, $offset)
// Otherwise apply the params and return the amended sql.
if ($offset >= 0 && $limit >= 0) {
$count = 1; //Only do it once
$sql = preg_replace('/^SELECT /i', 'SELECT FIRST ' . (int) $limit . ' SKIP ' . (int) $offset, $sql, $count);
$sql = preg_replace('/^SELECT /i', 'SELECT FIRST ' . (int) $limit . ' SKIP ' . (int) $offset . ' ', $sql, $count);
return $sql;
}
// If we have fallen through the cracks then just pass
Expand Down

0 comments on commit b3095db

Please sign in to comment.