From be3f2ab3e3b628b7b982d7fe3cb42ae360901894 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 27 Oct 2008 14:37:11 +1300 Subject: [PATCH] Correct quoting. --- dba/caldav_functions.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dba/caldav_functions.sql b/dba/caldav_functions.sql index a930a814..15998465 100644 --- a/dba/caldav_functions.sql +++ b/dba/caldav_functions.sql @@ -182,10 +182,10 @@ BEGIN loopcount := 100; -- Desirable to stop an infinite loop if there is something we cannot handle LOOP -- RAISE NOTICE ''Testing date: %'', our_answer; - IF frequency = 'DAILY' THEN + IF frequency = ''DAILY'' THEN IF byday IS NOT NULL THEN LOOP - dow = substring( to_char( our_answer, 'DY' ) for 2); + dow = substring( to_char( our_answer, ''DY'' ) for 2); EXIT WHEN byday ~* dow; -- Increment for our next time through the loop... our_answer := our_answer + (length::text || units)::interval;