aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPArrayAdditions.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-09-21 12:23:57 +0000
committerBibiko <bibiko@eva.mpg.de>2009-09-21 12:23:57 +0000
commitfdaa13de0954d498c4b591f80bde7af9f2035bb4 (patch)
treeb476707634e0e81ccd6d1fd285c50caf3b97849c /Source/SPArrayAdditions.m
parent3dcadeb1806b98e8820a38aebc4d7351f6c5856d (diff)
downloadsequelpro-fdaa13de0954d498c4b591f80bde7af9f2035bb4.tar.gz
sequelpro-fdaa13de0954d498c4b591f80bde7af9f2035bb4.tar.bz2
sequelpro-fdaa13de0954d498c4b591f80bde7af9f2035bb4.zip
• minor code cleaning (plus svn test)
Diffstat (limited to 'Source/SPArrayAdditions.m')
-rw-r--r--Source/SPArrayAdditions.m18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/SPArrayAdditions.m b/Source/SPArrayAdditions.m
index 37b1ba62..bce26872 100644
--- a/Source/SPArrayAdditions.m
+++ b/Source/SPArrayAdditions.m
@@ -27,19 +27,19 @@
@implementation NSArray (SPArrayAdditions)
-- (NSString *)componentsJoinedAndBacktickQuoted;
/*
* This method quotes all elements with backticks and then joins them with
* commas. Use it for field lists as in "SELECT (...) FROM somewhere"
*/
+- (NSString *)componentsJoinedAndBacktickQuoted;
{
- NSString *result = [NSString string];
- for (NSString *component in self)
- {
- if ([result length]) result = [result stringByAppendingString: @","];
- result = [result stringByAppendingString: [component backtickQuotedString] ];
- }
- return result;
+ NSString *result = [NSString string];
+ for (NSString *component in self)
+ {
+ if ([result length]) result = [result stringByAppendingString: @","];
+ result = [result stringByAppendingString: [component backtickQuotedString] ];
+ }
+ return result;
}
- (NSString *)componentsJoinedByCommas
@@ -51,7 +51,7 @@
{
result = [result stringByAppendingString:@","];
}
-
+
result = [result stringByAppendingString:component];
}
return result;