diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-10-25 12:45:18 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-10-25 12:45:18 +0000 |
commit | be97d12d4f5df97b268bd017f124d932f8d5d4a9 (patch) | |
tree | 36a6cd1273d862f31e758d1c5973f23fade660a8 /Source/SPStringAdditions.m | |
parent | 0915f9d8dcdf2177ce700dca036a629d00178dcd (diff) | |
download | sequelpro-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.m | 2 |
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:@")"]) |