aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-10-01 12:20:30 +0000
committerBibiko <bibiko@eva.mpg.de>2010-10-01 12:20:30 +0000
commit294af53678cda18e5f6e5f2007daa0893c1250d0 (patch)
tree1ba6643637001b2d4852094551e7deb2f22c929b /Frameworks
parentd7efae3ff6e5cf9407af16dbba09a55be092ce45 (diff)
downloadsequelpro-294af53678cda18e5f6e5f2007daa0893c1250d0.tar.gz
sequelpro-294af53678cda18e5f6e5f2007daa0893c1250d0.tar.bz2
sequelpro-294af53678cda18e5f6e5f2007daa0893c1250d0.zip
• added basic support for spatial data
- while querying and writing back make usage of AsText() and GeomFromText() to allow to edit each GEOMETRY field as text simple string - works only in Content Tab so far - the spatial data are not yet editable inside views
Diffstat (limited to 'Frameworks')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m b/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m
index 5c607912..5883bdc2 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m
@@ -320,6 +320,10 @@ void _bytes2bin(Byte *n, NSUInteger nbytes, NSUInteger len, char *buf);
cellData = [NSNull null];
break;
+ case FIELD_TYPE_GEOMETRY:
+ cellData = [NSData dataWithBytes:theData length:fieldLengths[i]];
+ break;
+
default:
NSLog(@"in fetchNextRowAsArray : Unknown type : %ld for column %ld, sending back a NSData object", (NSInteger)fieldDefinitions[i].type, (NSInteger)i);
cellData = [NSData dataWithBytes:theData length:fieldLengths[i]];