We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f235e47 commit b956efeCopy full SHA for b956efe
laravel/database/query/grammars/sqlserver.php
@@ -59,7 +59,7 @@ protected function selects(Query $query)
59
// it to the query here if there is not an OFFSET present.
60
if ($query->limit > 0 and $query->offset <= 0)
61
{
62
- $select .= 'TOP '.$query->limit.' ';
+ $select .= 'TOP '. (int) $query->limit.' ';
63
}
64
65
return $select.$this->columnize($query->selects);
0 commit comments