You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where = where ==null?'eventId = ?':'$where AND eventId = ?';
108
111
whereArgs = [...?whereArgs, eventId];
109
112
}
110
113
if (resourceIds !=null) {
114
+
final placeholders =List.filled(resourceIds.length, '?').join(', ');
111
115
final statement =
112
-
"(calendarItems.id IN (SELECT itemId FROM calendarItemResources WHERE resourceId IN (${List.filled(resourceIds.length, '?').join(', ')})) OR events.id IN (SELECT eventId FROM eventResources WHERE resourceId IN (${List.filled(resourceIds.length, '?').join(', ')})))";
116
+
"(calendarItems.id IN (SELECT itemId FROM calendarItemResources WHERE resourceId IN ($placeholders)) OR "
117
+
"calendarItems.eventId IN (SELECT eventId FROM eventResources WHERE resourceId IN ($placeholders)))";
113
118
where = where ==null? statement :'$where AND $statement';
0 commit comments