From da4787ab0f55faf065da34e86c5a7e252911e049 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 21 Oct 2009 00:14:44 +0000 Subject: - 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. --- Frameworks/MCPKit/MCPFoundationKit/MCPResult.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPResult.m') 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: -- cgit v1.2.3