aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/MCPKit
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-10-25 17:38:57 +0000
committerBibiko <bibiko@eva.mpg.de>2010-10-25 17:38:57 +0000
commit2ece071d16072cf819e5ad89cdf0b5d14979ff02 (patch)
treee1bd1b6d4b4411d3df2547de979301679510d544 /Frameworks/MCPKit
parent5819c3cda418dba41fc1824e051020258dfb854f (diff)
downloadsequelpro-2ece071d16072cf819e5ad89cdf0b5d14979ff02.tar.gz
sequelpro-2ece071d16072cf819e5ad89cdf0b5d14979ff02.tar.bz2
sequelpro-2ece071d16072cf819e5ad89cdf0b5d14979ff02.zip
• if a geometry field is empty '' return @"" instead of Header Error since mysql return that special value as X''
Diffstat (limited to 'Frameworks/MCPKit')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPGeometryData.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPGeometryData.m b/Frameworks/MCPKit/MCPFoundationKit/MCPGeometryData.m
index f8c1bbf6..aafdba0e 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPGeometryData.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPGeometryData.m
@@ -112,7 +112,7 @@
NSMutableString *wkt = [NSMutableString string];
if (bufferLength < WKB_HEADER_SIZE)
- return @"Header Error";
+ return @"";
memcpy(&srid, &geoBuffer[0], SIZEOF_STORED_UINT32);
ptr += SIZEOF_STORED_UINT32;
@@ -726,7 +726,7 @@
NSUInteger ptr = BUFFER_START; // pointer to geoBuffer while parsing
if (bufferLength < WKB_HEADER_SIZE)
- return @"Header Error";
+ return @"-1";
byteOrder = geoBuffer[ptr];