diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPSQLExporter.m | 10 | ||||
-rw-r--r-- | Source/SPTableStructureDelegate.m | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/Source/SPSQLExporter.m b/Source/SPSQLExporter.m index c1ce7412..10f039f6 100644 --- a/Source/SPSQLExporter.m +++ b/Source/SPSQLExporter.m @@ -282,7 +282,7 @@ } [[self exportOutputFile] writeData:[createTableSyntax dataUsingEncoding:NSUTF8StringEncoding]]; - [[self exportOutputFile] writeData:[[NSString stringWithString:@";\n\n"] dataUsingEncoding:NSUTF8StringEncoding]]; + [[self exportOutputFile] writeData:[@";\n\n" dataUsingEncoding:NSUTF8StringEncoding]]; } // Add the table content if required @@ -326,9 +326,11 @@ // Set up the column query string parts [rawColumnNames addObject:[theColumnDetail objectForKey:@"name"]]; + if (useRawHexDataForColumnAtIndex[j]) { [queryColumnDetails addObject:[NSString stringWithFormat:@"HEX(%@)", [[theColumnDetail objectForKey:@"name"] mySQLBacktickQuotedString]]]; - } else { + } + else { [queryColumnDetails addObject:[[theColumnDetail objectForKey:@"name"] mySQLBacktickQuotedString]]; } @@ -519,7 +521,7 @@ } // Complete the command - [[self exportOutputFile] writeData:[[NSString stringWithString:@";\n\n"] dataUsingEncoding:NSUTF8StringEncoding]]; + [[self exportOutputFile] writeData:[@";\n\n" dataUsingEncoding:NSUTF8StringEncoding]]; // Unlock the table and re-enable keys if supported [metaString setString:@""]; @@ -603,7 +605,7 @@ } // Add an additional separator between tables - [[self exportOutputFile] writeData:[[NSString stringWithString:@"\n\n"] dataUsingEncoding:NSUTF8StringEncoding]]; + [[self exportOutputFile] writeData:[@"\n\n" dataUsingEncoding:NSUTF8StringEncoding]]; } // Process any deferred views, adding commands to delete the placeholder tables and add the actual views diff --git a/Source/SPTableStructureDelegate.m b/Source/SPTableStructureDelegate.m index cd276f37..bb7d99be 100644 --- a/Source/SPTableStructureDelegate.m +++ b/Source/SPTableStructureDelegate.m @@ -665,4 +665,4 @@ return @""; } -@end
\ No newline at end of file +@end |