From add76b6ab052457adecaaf1458ca051663d07e57 Mon Sep 17 00:00:00 2001 From: "mattwillis%gmail.com" Date: Wed, 6 Sep 2006 22:40:36 +0000 Subject: [PATCH] bug 351598 - Fixes task SQL query. r1=ssitter, r2=jminta git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@209299 18797224-902f-48f8-a5cc-f745e15eee43 --- .../calendar/providers/storage/calStorageCalendar.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/calendar/providers/storage/calStorageCalendar.js b/mozilla/calendar/providers/storage/calStorageCalendar.js index 990232fbd04..d9c7c042bc6 100644 --- a/mozilla/calendar/providers/storage/calStorageCalendar.js +++ b/mozilla/calendar/providers/storage/calStorageCalendar.js @@ -1101,12 +1101,12 @@ calStorageCalendar.prototype = { this.mDB, "SELECT * FROM cal_todos " + "WHERE " + - " (("+floatingTodoDue+" >= :range_start + :start_offset) OR " + - " ("+nonFloatingTodoDue+" >= :range_start)) OR " + - " (todo_due IS NULL) AND " + - " (("+floatingTodoEntry+" < :range_end + :end_offset) OR " + - " ("+nonFloatingTodoEntry+" < :range_end)) OR " + - " (todo_entry IS NULL) " + + " ((("+floatingTodoDue+" >= :range_start + :start_offset) OR " + + " ("+nonFloatingTodoDue+" >= :range_start)) OR " + + " (todo_due IS NULL)) AND " + + " ((("+floatingTodoEntry+" < :range_end + :end_offset) OR " + + " ("+nonFloatingTodoEntry+" < :range_end)) OR " + + " (todo_entry IS NULL)) " + " AND cal_id = :cal_id AND recurrence_id IS NULL" );