diff options
author | stuconnolly <stuart02@gmail.com> | 2013-02-17 23:59:13 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2013-02-17 23:59:13 +0000 |
commit | 621ae24a28249f205837d8889654a2d4afe02093 (patch) | |
tree | a3053e8994bbb0f8668bc5b250452744f9fa3aac /Source | |
parent | d9e1657fce16698ba8f92b6777a6e8b08eb10318 (diff) | |
download | sequelpro-621ae24a28249f205837d8889654a2d4afe02093.tar.gz sequelpro-621ae24a28249f205837d8889654a2d4afe02093.tar.bz2 sequelpro-621ae24a28249f205837d8889654a2d4afe02093.zip |
Fix some 10.8 warnings.
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 |