Skip to content

Commit b3095db

Browse files
Fixed space after SKIP #9
1 parent 8893a3f commit b3095db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public function buildOrderByAndLimit($sql, $orderBy, $limit, $offset)
179179
// Otherwise apply the params and return the amended sql.
180180
if ($offset >= 0 && $limit >= 0) {
181181
$count = 1; //Only do it once
182-
$sql = preg_replace('/^SELECT /i', 'SELECT FIRST ' . (int) $limit . ' SKIP ' . (int) $offset, $sql, $count);
182+
$sql = preg_replace('/^SELECT /i', 'SELECT FIRST ' . (int) $limit . ' SKIP ' . (int) $offset . ' ', $sql, $count);
183183
return $sql;
184184
}
185185
// If we have fallen through the cracks then just pass

0 commit comments

Comments
 (0)