petropavel13 / pg_rrule

RRULE data type for PostgreSQL
MIT License
164 stars 29 forks source link

The unbounded form of get_occurrences() should fail if there is no COUNT/UNTIL. #4

Open groner opened 9 years ago

groner commented 9 years ago

There seems to be a limit, so while it will eventually finish, returning all occurrences ever probably isn't what the user really wants.

The user can guard against this by checking for get_count() > 0 OR get_until() is not null, but this is a hazard that it would be better to avoid.

petropavel13 commented 9 years ago

sounds great, I'll deal with it on weekends

groner commented 8 years ago

8 show an impossible rrule, with a COUNT, that causes get_occurrences to return.