aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/MCPKit/MCPFoundationKit/MCPResult.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-10-21 00:14:44 +0000
committerstuconnolly <stuart02@gmail.com>2009-10-21 00:14:44 +0000
commitda4787ab0f55faf065da34e86c5a7e252911e049 (patch)
treed04c9e00ee8948d6697441ce0c3c30da6b0c660d /Frameworks/MCPKit/MCPFoundationKit/MCPResult.m
parent951330376a7b1e85dea0c44825534a4ab598c100 (diff)
downloadsequelpro-da4787ab0f55faf065da34e86c5a7e252911e049.tar.gz
sequelpro-da4787ab0f55faf065da34e86c5a7e252911e049.tar.bz2
sequelpro-da4787ab0f55faf065da34e86c5a7e252911e049.zip
- Add support for createing fields of type BINARY and VARBINARY in the structure view. Fixes issue #223.
- Fix for correctly displaying data within fields of type BINARY/VARBINARY. Fixes issue #348.
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPResult.m')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPResult.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPResult.m b/Frameworks/MCPKit/MCPFoundationKit/MCPResult.m
index 9d49bda3..d2061fca 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPResult.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPResult.m
@@ -451,9 +451,12 @@ const OUR_CHARSET our_charsets60[] =
case FIELD_TYPE_MEDIUM_BLOB:
case FIELD_TYPE_LONG_BLOB:
theCurrentObj = [NSData dataWithBytes:theData length:theLengths[i]];
- if (!(theField[i].flags & BINARY_FLAG)) { // It is TEXT and NOT BLOB...
+
+ // It is TEXT and NOT BLOB
+ if (!(theField[i].flags & BINARY_FLAG)) {
theCurrentObj = [self stringWithText:theCurrentObj];
- } // #warning Should check for TEXT (using theField[i].flag BINARY_FLAG)
+ }
+
break;
case FIELD_TYPE_NULL: