aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-10-07 23:08:50 +0000
committerBibiko <bibiko@eva.mpg.de>2010-10-07 23:08:50 +0000
commitc3926679e056452830aa8ba1fd20b162dbb669d2 (patch)
treef8b1e6777a68702e9d23e3e17628b23ce0eb5543 /Source/SPTableContent.m
parent933bb6c9254ba4761eb960c1b3893a9e57c39fb6 (diff)
downloadsequelpro-c3926679e056452830aa8ba1fd20b162dbb669d2.tar.gz
sequelpro-c3926679e056452830aa8ba1fd20b162dbb669d2.tar.bz2
sequelpro-c3926679e056452830aa8ba1fd20b162dbb669d2.zip
• spatial field support
- fixed issue while editing geometry data in Content View; once a geometry field was edited it will be stored as NSString, if not it keeps a MCPGeometryData - some code cosmetics and commenting
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index fd8f1703..4fb1bd3e 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -2391,7 +2391,7 @@
[rowValue setString:@"CURRENT_TIMESTAMP"];
} else if ( [[NSArrayObjectAtIndex(dataColumns, i) objectForKey:@"typegrouping"] isEqualToString:@"geometry"] ) {
- [rowValue setString:[NSString stringWithFormat:@"GeomFromText('%@')", rowObject]];
+ [rowValue setString:[NSString stringWithFormat:@"GeomFromText('%@')", ([rowObject isKindOfClass:[MCPGeometryData class]]) ? [rowObject wktString] : rowObject]];
// Convert the object to a string (here we can add special treatment for date-, number- and data-fields)
} else if ( [rowObject isNSNull]
|| ([rowObject isMemberOfClass:[NSString class]] && [[rowObject description] isEqualToString:@""]) ) {