Skip to content

Commit

Permalink
fix(addressbook(dav)): improve handling of addressbook-query
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Mar 9, 2022
1 parent a965f27 commit 1545bcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SOPE/GDLContentStore/EOQualifier+GCS.m
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ - (void) _appendKeyValueQualifier: (EOKeyValueQualifier *) _q
{
if (_adaptor)
{
// Assume qualifier applies to a varchar column type
// The value is a string, assume qualifier applies to a varchar column type
attribute = [EOAttribute new];
[attribute setExternalType: @"varchar"];
[attribute autorelease];
Expand Down
4 changes: 2 additions & 2 deletions SoObjects/Contacts/SOGoContactGCSFolder.m
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ - (EOQualifier *) qualifierForFilter: (NSString *) filter
qualifier = nil;
if ([filter length] > 0)
{
filter = [filter asSafeSQLLikeString];
filter = [[filter asSafeSQLString] stringByReplacingString: @"\%" withString: @"%%"];
filters = [NSMutableArray array];
filterFormat = [NSString stringWithFormat: @"(%%@ isCaseInsensitiveLike: '%%%%%@%%%%')", filter];
filterFormat = [NSString stringWithFormat: @"(%%@ isCaseInsensitiveLike: '*%@*')", filter];
if (criteria)
criteriaList = [criteria objectEnumerator];
else
Expand Down

0 comments on commit 1545bcd

Please sign in to comment.