diff options
Diffstat (limited to 'Frameworks/QueryKit/QKQueryParameter.m')
-rw-r--r-- | Frameworks/QueryKit/QKQueryParameter.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Frameworks/QueryKit/QKQueryParameter.m b/Frameworks/QueryKit/QKQueryParameter.m index d131c156..bc9efa2f 100644 --- a/Frameworks/QueryKit/QKQueryParameter.m +++ b/Frameworks/QueryKit/QKQueryParameter.m @@ -63,12 +63,12 @@ - (NSString *)description { NSMutableString *string = [NSMutableString string]; - + NSString *field = [_field stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; [string appendString:field]; [string appendFormat:@" %@ ", [QKQueryUtilities operatorRepresentationForType:_operator]]; - [string appendString:[_value description]]; + [string appendFormat:(![_value isKindOfClass:[NSNumber class]]) ? @"'%@'" : @"%@", [_value description]]; return string; } |