aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/CMCopyTable.m1
-rw-r--r--Source/TableDump.m2
2 files changed, 2 insertions, 1 deletions
diff --git a/Source/CMCopyTable.m b/Source/CMCopyTable.m
index 1848e2d9..159bcaf6 100644
--- a/Source/CMCopyTable.m
+++ b/Source/CMCopyTable.m
@@ -212,7 +212,6 @@ int MENU_EDIT_COPY_AS_SQL = 2002;
else
[types addObject:[NSNumber numberWithInt:1]]; // string (fallback coevally)
}
-NSLog([types description]);
[result appendString:[NSString stringWithFormat:@"INSERT INTO %@ (%@)\nVALUES\n",
[(selectedTable == nil)?@"<table>":selectedTable backtickQuotedString], [tbHeader componentsJoinedAndBacktickQuoted]]];
diff --git a/Source/TableDump.m b/Source/TableDump.m
index 50bba928..f1c2f678 100644
--- a/Source/TableDump.m
+++ b/Source/TableDump.m
@@ -689,6 +689,7 @@
// Extract and process any complete SQL queries that can be found in the strings parsed so far
while (query = [sqlParser trimAndReturnStringToCharacter:';' trimmingInclusively:YES returningInclusively:NO]) {
+ if (progressCancelled) break;
fileProcessedLength += [query lengthOfBytesUsingEncoding:sqlEncoding] + 1;
// Skip blank or whitespace-only queries to avoid errors
@@ -997,6 +998,7 @@
while ([parsedRows count] >= csvRowsPerQuery
|| (!csvRowArray && allDataRead && [parsedRows count]))
{
+ if (progressCancelled) break;
query = [[NSMutableString alloc] initWithString:insertBaseString];
csvRowsThisQuery = 0;
for (i = 0; i < csvRowsPerQuery && i < [parsedRows count]; i++) {