Skip to content

Commit

Permalink
Merge branch 'main' into has_composite
Browse files Browse the repository at this point in the history
  • Loading branch information
rodo authored Nov 7, 2024
2 parents 3633b79 + 224f5b3 commit f91f675
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions doc/pgtap.mmd
Original file line number Diff line number Diff line change
Expand Up @@ -3616,7 +3616,7 @@ specified index does *not* exist.
SELECT has_trigger( :schema, :table, :trigger, :description );
SELECT has_trigger( :schema, :table, :trigger );
SELECT has_trigger( :table, :trigger, :description );
SELECT has_trigger( :table, :trigger )` ###
SELECT has_trigger( :table, :trigger );

**Parameters**

Expand All @@ -3641,7 +3641,7 @@ associated must be visible in the search path.
SELECT hasnt_trigger( :schema, :table, :trigger, :description );
SELECT hasnt_trigger( :schema, :table, :trigger );
SELECT hasnt_trigger( :table, :trigger, :description );
SELECT hasnt_trigger( :table, :trigger )` ###
SELECT hasnt_trigger( :table, :trigger );

**Parameters**

Expand All @@ -3665,7 +3665,7 @@ specified trigger does *not* exist.
SELECT has_rule( :schema, :table, :rule, :description );
SELECT has_rule( :schema, :table, :rule );
SELECT has_rule( :table, :rule, :description );
SELECT has_rule( :table, :rule )` ###
SELECT has_rule( :table, :rule );

**Parameters**

Expand All @@ -3690,7 +3690,7 @@ associated must be visible in the search path.
SELECT hasnt_rule( :schema, :table, :rule, :description );
SELECT hasnt_rule( :schema, :table, :rule );
SELECT hasnt_rule( :table, :rule, :description );
SELECT hasnt_rule( :table, :rule )` ###
SELECT hasnt_rule( :table, :rule );

**Parameters**

Expand Down
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 f91f675

Please sign in to comment.