mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-25 17:46:52 +00:00
We don't need to loop 100 times to see there is a problem. And when we do
we should describe it better as well.
This commit is contained in:
parent
2649b28ed4
commit
3459bff7df
@ -179,7 +179,7 @@ BEGIN
|
||||
END IF;
|
||||
|
||||
|
||||
loopcount := 1000; -- Not really needed, but stops an infinite loop if there is a bug!
|
||||
loopcount := 100; -- Desirable to stop an infinite loop if there is something we cannot handle
|
||||
LOOP
|
||||
-- RAISE NOTICE ''Testing date: %'', our_answer;
|
||||
IF frequency = ''WEEKLY'' THEN
|
||||
@ -206,7 +206,7 @@ BEGIN
|
||||
|
||||
loopcount := loopcount - 1;
|
||||
IF loopcount < 0 THEN
|
||||
RAISE EXCEPTION ''Could not cope with dates after % using % from %'', earliest, repeatrule, basedate;
|
||||
RAISE EXCEPTION ''Giving up on repeat rule "%" - after 100 increments from % we are still not after %'', repeatrule, basedate, earliest;
|
||||
RETURN NULL;
|
||||
END IF;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user