0011968: shared calendars filter leads to sql error with pgsql