aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPStringAdditions.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-10-25 12:45:18 +0000
committerBibiko <bibiko@eva.mpg.de>2010-10-25 12:45:18 +0000
commitbe97d12d4f5df97b268bd017f124d932f8d5d4a9 (patch)
tree36a6cd1273d862f31e758d1c5973f23fade660a8 /Source/SPStringAdditions.m
parent0915f9d8dcdf2177ce700dca036a629d00178dcd (diff)
downloadsequelpro-be97d12d4f5df97b268bd017f124d932f8d5d4a9.tar.gz
sequelpro-be97d12d4f5df97b268bd017f124d932f8d5d4a9.tar.bz2
sequelpro-be97d12d4f5df97b268bd017f124d932f8d5d4a9.zip
• improved the TableStructure handling of GEOMETRY fields and their validations against non-valid WKT notations - return NULL if no header
Diffstat (limited to 'Source/SPStringAdditions.m')
-rw-r--r--Source/SPStringAdditions.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPStringAdditions.m b/Source/SPStringAdditions.m
index ea603cbc..847b4dbc 100644
--- a/Source/SPStringAdditions.m
+++ b/Source/SPStringAdditions.m
@@ -382,7 +382,7 @@
NSString *geomStr = [self stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
- if(![self rangeOfString:@")"].length || [self length] < 5) return @"";
+ if(![self rangeOfString:@")"].length || [self length] < 5) return @"NULL";
// No SRID
if([geomStr hasSuffix:@")"])