diff options
author | stuconnolly <stuart02@gmail.com> | 2010-12-14 22:12:36 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-12-14 22:12:36 +0000 |
commit | 2f1146de80e658021e6a0fc63a20b039f73cca06 (patch) | |
tree | af451ac4cd3fbbee8b03f306cfdc95435e5ca1f5 /Source/SPXMLExporter.m | |
parent | 9859a8f8b20ebf038967a09b40bba9b4eb2f223b (diff) | |
parent | 263c981e4905595ebcb3e5d57609ddf75bdf40a2 (diff) | |
download | sequelpro-2f1146de80e658021e6a0fc63a20b039f73cca06.tar.gz sequelpro-2f1146de80e658021e6a0fc63a20b039f73cca06.tar.bz2 sequelpro-2f1146de80e658021e6a0fc63a20b039f73cca06.zip |
Bring outline view branch up to date with trunk (r3018:3028).
Diffstat (limited to 'Source/SPXMLExporter.m')
-rw-r--r-- | Source/SPXMLExporter.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/SPXMLExporter.m b/Source/SPXMLExporter.m index 962d5a53..57977be0 100644 --- a/Source/SPXMLExporter.m +++ b/Source/SPXMLExporter.m @@ -113,7 +113,9 @@ if (([self xmlFormat] == SPXMLExportMySQLFormat) && [self xmlOutputIncludeStructure]) { structureResult = [connection queryString:[NSString stringWithFormat:@"SHOW COLUMNS FROM %@", [[self xmlTableName] backtickQuotedString]]]; - statusResult = [connection queryString:[NSString stringWithFormat:@"SHOW TABLE STATUS LIKE %@", [[self xmlTableName] tickQuotedString]]]; + NSMutableString *escapedTableName = [NSMutableString stringWithString:[[self xmlTableName] tickQuotedString]]; + [escapedTableName replaceOccurrencesOfString:@"\\" withString:@"\\\\\\\\" options:0 range:NSMakeRange(0, [escapedTableName length])]; + statusResult = [connection queryString:[NSString stringWithFormat:@"SHOW TABLE STATUS LIKE %@", escapedTableName]]; if ([structureResult numOfRows] && [statusResult numOfRows]) { |