diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-10-07 14:15:07 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-10-07 14:15:07 +0000 |
commit | 95d2e4acc393e91aa70ed4c71daa1f776454a936 (patch) | |
tree | c0462090392ae1e252d6ddff5af5887f84dc3ce1 /Source/SPCopyTable.m | |
parent | b763c421f6fc2fc693ccbf89ffe38c64cd977ab8 (diff) | |
download | sequelpro-95d2e4acc393e91aa70ed4c71daa1f776454a936.tar.gz sequelpro-95d2e4acc393e91aa70ed4c71daa1f776454a936.tar.bz2 sequelpro-95d2e4acc393e91aa70ed4c71daa1f776454a936.zip |
• removed approach to query spatial data by using AsText() since it breaks some column definition approaches
- instead introduced a new MCPKit class MCPGeometryData
- up to now the spatial data will be displayed as hex bytes - work on it will come soon
Diffstat (limited to 'Source/SPCopyTable.m')
-rw-r--r-- | Source/SPCopyTable.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/SPCopyTable.m b/Source/SPCopyTable.m index e53e714a..9d014839 100644 --- a/Source/SPCopyTable.m +++ b/Source/SPCopyTable.m @@ -669,8 +669,12 @@ NSInteger MENU_EDIT_COPY_AS_SQL = 2003; // Retrieve the cell's content contentString = [tableStorage cellDataAtRow:i column:columnIndex]; + // TODO it's temporarily + if ([contentString isKindOfClass:[MCPGeometryData class]]) + contentString = [contentString description]; + // Replace NULLs with their placeholder string - if ([contentString isNSNull]) { + else if ([contentString isNSNull]) { contentString = [prefs objectForKey:SPNullValue]; // Same for cells for which loading has been deferred - likely blobs |