From c1bab7abd666d809aa01c330a66c53e1b6abe6c4 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Mon, 9 Jul 2012 09:27:48 +0000 Subject: Improve QueryKit's handling of quotes by making it on by default. Also, add a bunch more tests. --- Frameworks/QueryKit/Source/QKQuery.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Frameworks/QueryKit/Source/QKQuery.h') diff --git a/Frameworks/QueryKit/Source/QKQuery.h b/Frameworks/QueryKit/Source/QKQuery.h index c0f925bb..1cb93d15 100644 --- a/Frameworks/QueryKit/Source/QKQuery.h +++ b/Frameworks/QueryKit/Source/QKQuery.h @@ -55,7 +55,7 @@ QKQueryType _queryType; - BOOL _quoteFields; + BOOL _useQuotes; BOOL _orderDescending; } @@ -90,9 +90,9 @@ @property (readwrite, assign, getter=queryType, setter=setQueryType:) QKQueryType _queryType; /** - * @property _quoteFields Indicates whether or not the query's fields should be quoted. + * @property _useQuotes Indicates whether or not the query's fields should be quoted. */ -@property (readwrite, assign, getter=quoteFields, setter=setQuoteFields:) BOOL _quoteFields; +@property (readwrite, assign, getter=useQuotes) BOOL _useQuotes; + (QKQuery *)queryTable:(NSString *)table; + (QKQuery *)selectQueryFromTable:(NSString *)table; @@ -102,6 +102,8 @@ - (NSString *)query; - (void)clear; +- (void)setUseQuotes:(BOOL)quote; + - (void)addField:(NSString *)field; - (void)addFields:(NSArray *)fields; -- cgit v1.2.3