Monotone-Parent: db9ec5b861b659354c77dd7978e1c7f78f92de3e
Monotone-Revision: 58bf9e25143b37ae58bc6d5cd8f128ea280e2e85 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-04-20T19:41:49 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
c9cebfec36
commit
a105c46150
|
@ -73,13 +73,12 @@
|
||||||
BOOL isCI;
|
BOOL isCI;
|
||||||
|
|
||||||
qKey = [_q key];
|
qKey = [_q key];
|
||||||
|
isCI = NO;
|
||||||
|
|
||||||
if ((val = [_q value])) {
|
if ((val = [_q value])) {
|
||||||
SEL op = [_q selector];
|
SEL op = [_q selector];
|
||||||
|
|
||||||
if ([val isNotNull]) {
|
if ([val isNotNull]) {
|
||||||
isCI = NO;
|
|
||||||
|
|
||||||
if (sel_eq(op, EOQualifierOperatorEqual))
|
if (sel_eq(op, EOQualifierOperatorEqual))
|
||||||
qOperator = @"=";
|
qOperator = @"=";
|
||||||
else if (sel_eq(op, EOQualifierOperatorNotEqual))
|
else if (sel_eq(op, EOQualifierOperatorNotEqual))
|
||||||
|
@ -110,12 +109,12 @@
|
||||||
qValue = [NSString stringWithFormat: @"'%@'", val];
|
qValue = [NSString stringWithFormat: @"'%@'", val];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
qValue = @"NULL";
|
||||||
[self errorWithFormat:@"%s: unsupported value class: %@",
|
[self errorWithFormat:@"%s: unsupported value class: %@",
|
||||||
__PRETTY_FUNCTION__, NSStringFromClass([val class])];
|
__PRETTY_FUNCTION__, NSStringFromClass([val class])];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
isCI = NO;
|
|
||||||
if (sel_eq(op, EOQualifierOperatorEqual)) {
|
if (sel_eq(op, EOQualifierOperatorEqual)) {
|
||||||
qOperator = @"IS";
|
qOperator = @"IS";
|
||||||
qValue = @"NULL";
|
qValue = @"NULL";
|
||||||
|
|
Loading…
Reference in New Issue