aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/QueryKit/QKQueryParameter.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-09-27 00:21:35 +0000
committerstuconnolly <stuart02@gmail.com>2011-09-27 00:21:35 +0000
commit81cd8b8581e1af8bb63f2be9786737671e54c052 (patch)
treef3ce3ae38b82a8db8e8b7f339e99aa94568bdfd7 /Frameworks/QueryKit/QKQueryParameter.m
parent915ea2f00e1f31a57e74e987062a1b5c2381635d (diff)
downloadsequelpro-81cd8b8581e1af8bb63f2be9786737671e54c052.tar.gz
sequelpro-81cd8b8581e1af8bb63f2be9786737671e54c052.tar.bz2
sequelpro-81cd8b8581e1af8bb63f2be9786737671e54c052.zip
QueryKit updates.
Diffstat (limited to 'Frameworks/QueryKit/QKQueryParameter.m')
-rw-r--r--Frameworks/QueryKit/QKQueryParameter.m4
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;
}