From c1cd608e4974254e8806260eee3e7b2f57c126c7 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 15 Feb 2011 06:30:10 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20bug=20while=20CSV=20Import=20for=20?= =?UTF-8?q?method=20UPDATE=20and=20INSERT=20remaining=20rows=20-=20appende?= =?UTF-8?q?d=20a=20','=20to=20the=20wrong=20NSString=20-=20fixes=20i978?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPDataImport.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/SPDataImport.m b/Source/SPDataImport.m index 0a521cc2..bfde3a26 100644 --- a/Source/SPDataImport.m +++ b/Source/SPDataImport.m @@ -1014,7 +1014,7 @@ insertBaseStringHasEntries = NO; for (i = 0; i < [fieldMappingArray count]; i++) { if ([NSArrayObjectAtIndex(fieldMapperOperator, i) integerValue] == 0) { - if (insertBaseStringHasEntries) [insertBaseString appendString:@","]; + if (insertBaseStringHasEntries) [insertRemainingBaseString appendString:@","]; else insertBaseStringHasEntries = YES; [insertRemainingBaseString appendString:[NSArrayObjectAtIndex(fieldMappingTableColumnNames, i) backtickQuotedString]]; } -- cgit v1.2.3