Where(
Operator(
{ 'SQL.Naive' => '>=' },
- [ Identifier($rownum_name), $limit_plus_offset, ]
+ [ Identifier($rownum_name), $offset_plus ]
),
Alias(
$remapped{default_inside_alias},
Where(
Operator(
{ 'SQL.Naive' => '<=' },
- [ Literal(SQL => 'ROWNUM'), $offset_plus ]
+ [ Literal(SQL => 'ROWNUM'), $limit_plus_offset ]
),
$inside_select,
)
Where(
Operator(
{ 'SQL.Naive' => 'BETWEEN' },
- [ Identifier($rownum_name), $limit_plus_offset, $offset_plus ]
+ [ Identifier($rownum_name), $offset_plus, $limit_plus_offset ]
),
Alias(
$remapped{default_inside_alias},