Skip to content

Commit

Permalink
Remove tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Nov 5, 2024
1 parent c2472af commit 0c0197a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sql/pgtap.sql.in
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ DECLARE
offset_it INT;
limit_it INT;
offset_percent NUMERIC;
a_time _time_trial_type;
a_time _time_trial_type;
BEGIN
-- Execute the query over and over
FOR i IN 1..iterations LOOP
Expand All @@ -869,11 +869,11 @@ BEGIN
SELECT GREATEST((return_percent * iterations)::int, 1) INTO limit_it;

FOR a_time IN SELECT times[i]
FROM generate_series(array_lower(times, 1), array_upper(times, 1)) i
FROM generate_series(array_lower(times, 1), array_upper(times, 1)) i
ORDER BY 1
OFFSET offset_it
LIMIT limit_it LOOP
RETURN NEXT a_time;
RETURN NEXT a_time;
END LOOP;
END;
$$ LANGUAGE plpgsql;
Expand Down

0 comments on commit 0c0197a

Please sign in to comment.