File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
laravel/database/query/grammars Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -91,14 +91,14 @@ protected function ansi_offset(Query $query, $components)
91
91
92
92
unset($ components ['orderings ' ]);
93
93
94
- $ start = $ query ->offset + 1 ;
94
+ $ start = ( int ) $ query ->offset + 1 ;
95
95
96
96
// Next we need to calculate the constraint that should be placed on
97
97
// the row number to get the correct offset and limit on the query.
98
98
// If there is not a limit, we'll just handle the offset.
99
99
if ($ query ->limit > 0 )
100
100
{
101
- $ finish = $ query ->offset + $ query ->limit ;
101
+ $ finish = ( int ) $ query ->offset + ( int ) $ query ->limit ;
102
102
103
103
$ constraint = "BETWEEN {$ start } AND {$ finish }" ;
104
104
}
@@ -137,4 +137,4 @@ protected function offset(Query $query)
137
137
return '' ;
138
138
}
139
139
140
- }
140
+ }
You can’t perform that action at this time.
0 commit comments