Monotone-Parent: 827061cfd7bb39eead69601b6015cb0ff6ebf1f1

Monotone-Revision: af017f174df00d4475a8c99168a6d994257a1ca8

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-13T14:02:30
This commit is contained in:
Wolfgang Sourdeau
2012-04-13 14:02:30 +00:00
parent c270e1e720
commit 4c23e19c0c
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2012-04-13 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Appointments/SOGoAppointmentFolder.m (-bareFetchFields: ...),
(-fetchFields:from:to:title:component:additionalFilters:includeProtectedInformation:):
restored c-style escaping of sql-style escaping of quote characters.
2012-04-12 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoGCSFolder.m (-componentSQLFilter): new

View File

@@ -553,7 +553,7 @@ static NSNumber *sharedYes = nil;
if ([title length])
[baseWhere
addObject: [NSString stringWithFormat: @"c_title isCaseInsensitiveLike: '%%%@%%'",
[title stringByReplacingString: @"'" withString: @"''"]]];
[title stringByReplacingString: @"'" withString: @"\\'\\'"]]];
if (component)
{
@@ -1150,7 +1150,7 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
if ([title length])
[baseWhere
addObject: [NSString stringWithFormat: @"c_title isCaseInsensitiveLike: '%%%@%%'",
[title stringByReplacingString: @"'" withString: @"''"]]];
[title stringByReplacingString: @"'" withString: @"\\'\\'"]]];
if ([filters length])
[baseWhere addObject: [NSString stringWithFormat: @"(%@)", filters]];