Skip to content

Commit bba6a92

Browse files
committed
Remove placeholders for LIMIT, cast vars to integer
1 parent 475998c commit bba6a92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Builder/Syntax/SelectWriter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ protected function writeSelectLimit(Select $select, array &$parts)
364364
$limit = '';
365365

366366
if ($mask !== '00') {
367-
$start = $this->placeholderWriter->add($select->getLimitStart());
368-
$count = $this->placeholderWriter->add($select->getLimitCount());
367+
$start = (int)$select->getLimitStart();
368+
$count = (int)$select->getLimitCount();
369369

370370
$limit = "LIMIT {$start}, {$count}";
371371
}

0 commit comments

Comments
 (0)