aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPSQLExporter.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-10-25 20:22:23 +0000
committerrowanbeentje <rowan@beent.je>2010-10-25 20:22:23 +0000
commitb0ba61dfc7d3adda17c312cbc5f07afb0f527454 (patch)
treea664326d0eca2d5e61f242c788806356cba8635b /Source/SPSQLExporter.m
parent2ece071d16072cf819e5ad89cdf0b5d14979ff02 (diff)
downloadsequelpro-b0ba61dfc7d3adda17c312cbc5f07afb0f527454.tar.gz
sequelpro-b0ba61dfc7d3adda17c312cbc5f07afb0f527454.tar.bz2
sequelpro-b0ba61dfc7d3adda17c312cbc5f07afb0f527454.zip
- Fix incorrect quoting of BLOB fields on SQL exports
- Use indeterminate progress bars when importing BZIPped SQL files - Support .tsv as a CSV extension, and automatically choose the field delineator based on .csv/.tsv extension
Diffstat (limited to 'Source/SPSQLExporter.m')
-rw-r--r--Source/SPSQLExporter.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPSQLExporter.m b/Source/SPSQLExporter.m
index 1374ccda..d999cc2b 100644
--- a/Source/SPSQLExporter.m
+++ b/Source/SPSQLExporter.m
@@ -396,10 +396,11 @@
[sqlString appendString:data];
[data release];
+
+ [sqlString appendString:@"'"];
}
-
- [sqlString appendString:@"'"];
}
+
// GEOMETRY data types directly as hex data
else if ([object isKindOfClass:[MCPGeometryData class]]) {
[sqlString appendFormat:@"X'%@'", [connection prepareBinaryData:[object data]]];