mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Update sqlserver.php
This commit is contained in:
parent
f235e47f29
commit
b956efe29f
@ -59,7 +59,7 @@ class SQLServer extends Grammar {
|
|||||||
// it to the query here if there is not an OFFSET present.
|
// it to the query here if there is not an OFFSET present.
|
||||||
if ($query->limit > 0 and $query->offset <= 0)
|
if ($query->limit > 0 and $query->offset <= 0)
|
||||||
{
|
{
|
||||||
$select .= 'TOP '.$query->limit.' ';
|
$select .= 'TOP '. (int) $query->limit.' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
return $select.$this->columnize($query->selects);
|
return $select.$this->columnize($query->selects);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user