From a105c461506ac29d7f268cc57b704b4ab516d9a3 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 20 Apr 2010 19:41:49 +0000 Subject: [PATCH] Monotone-Parent: db9ec5b861b659354c77dd7978e1c7f78f92de3e Monotone-Revision: 58bf9e25143b37ae58bc6d5cd8f128ea280e2e85 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-04-20T19:41:49 Monotone-Branch: ca.inverse.sogo --- SOPE/GDLContentStore/EOQualifier+GCS.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SOPE/GDLContentStore/EOQualifier+GCS.m b/SOPE/GDLContentStore/EOQualifier+GCS.m index ec12ae59d..b874719e0 100644 --- a/SOPE/GDLContentStore/EOQualifier+GCS.m +++ b/SOPE/GDLContentStore/EOQualifier+GCS.m @@ -73,13 +73,12 @@ BOOL isCI; qKey = [_q key]; + isCI = NO; if ((val = [_q value])) { SEL op = [_q selector]; if ([val isNotNull]) { - isCI = NO; - if (sel_eq(op, EOQualifierOperatorEqual)) qOperator = @"="; else if (sel_eq(op, EOQualifierOperatorNotEqual)) @@ -110,12 +109,12 @@ qValue = [NSString stringWithFormat: @"'%@'", val]; } else { + qValue = @"NULL"; [self errorWithFormat:@"%s: unsupported value class: %@", __PRETTY_FUNCTION__, NSStringFromClass([val class])]; } } else { - isCI = NO; if (sel_eq(op, EOQualifierOperatorEqual)) { qOperator = @"IS"; qValue = @"NULL";