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 9e40cc5 commit f337011Copy full SHA for f337011
laravel/database/query/grammars/sqlserver.php
@@ -91,14 +91,14 @@ protected function ansi_offset(Query $query, $components)
91
92
unset($components['orderings']);
93
94
- $start = $query->offset + 1;
+ $start = (int) $query->offset + 1;
95
96
// Next we need to calculate the constraint that should be placed on
97
// the row number to get the correct offset and limit on the query.
98
// If there is not a limit, we'll just handle the offset.
99
if ($query->limit > 0)
100
{
101
- $finish = $query->offset + $query->limit;
+ $finish = (int) $query->offset + (int) $query->limit;
102
103
$constraint = "BETWEEN {$start} AND {$finish}";
104
}
@@ -137,4 +137,4 @@ protected function offset(Query $query)
137
return '';
138
139
140
-}
+}
0 commit comments