From 57c25577a9c5ae66add3c30e1daf4e2bb5756a80 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 4 Jun 2009 18:14:15 +0000 Subject: =?UTF-8?q?=E2=80=A2=20added=20the=20operator=20LIKE=20to=20numeri?= =?UTF-8?q?c=20fields=20in=20the=20content=20browser=20-=20this=20fixes=20?= =?UTF-8?q?issue=20270?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/TableContent.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/TableContent.m b/Source/TableContent.m index cc06902d..555b1a13 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -543,11 +543,16 @@ [argument setString:[[@"(" stringByAppendingString:argument] stringByAppendingString:@")"]]; break; case 7: + compareOperator = @"LIKE"; + doQuote = YES; + ignoreArgument = YES; + break; + case 8: compareOperator = @"IS NULL"; doQuote = NO; ignoreArgument = YES; break; - case 8: + case 9: compareOperator = @"IS NOT NULL"; doQuote = NO; ignoreArgument = YES; @@ -1124,7 +1129,7 @@ - (IBAction)setCompareTypes:(id)sender { NSArray *stringTypes = [NSArray arrayWithObjects:NSLocalizedString(@"is", @"popup menuitem for field IS value"), NSLocalizedString(@"is not", @"popup menuitem for field IS NOT value"), NSLocalizedString(@"contains", @"popup menuitem for field CONTAINS value"), NSLocalizedString(@"contains not", @"popup menuitem for field CONTAINS NOT value"), @"IN", nil]; - NSArray *numberTypes = [NSArray arrayWithObjects:@"=", @"≠", @">", @"<", @"≥", @"≤", @"IN", nil]; + NSArray *numberTypes = [NSArray arrayWithObjects:@"=", @"≠", @">", @"<", @"≥", @"≤", @"IN", @"LIKE", nil]; NSArray *dateTypes = [NSArray arrayWithObjects:NSLocalizedString(@"is", @"popup menuitem for field IS value"), NSLocalizedString(@"is not", @"popup menuitem for field IS NOT value"), NSLocalizedString(@"is after", @"popup menuitem for field AFTER DATE value"), NSLocalizedString(@"is before", @"popup menuitem for field BEFORE DATE value"), NSLocalizedString(@"is after or equal to", @"popup menuitem for field AFTER OR EQUAL TO value"), NSLocalizedString(@"is before or equal to", @"popup menuitem for field BEFORE OR EQUAL TO value"), nil]; NSString *fieldTypeGrouping = [NSString stringWithString:[[tableDataInstance columnWithName:[[fieldField selectedItem] title]] objectForKey:@"typegrouping"]]; -- cgit v1.2.3