mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
fix(addressbook(dav)): improve handling of addressbook-query
This commit is contained in:
@@ -136,7 +136,7 @@
|
||||
{
|
||||
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];
|
||||
|
||||
@@ -221,9 +221,9 @@ static NSArray *folderListingFields = nil;
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user