From 1434da05485e61c5ea7950b09ecde40cae8e3122 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sun, 12 Jun 2011 12:24:59 +0000 Subject: - Add support for use of table relation "link" arrows on binary/blob data, fixing exceptions (eg log 3321) --- Source/SPTableContent.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index ac3b1fc6..55afa8c0 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -3532,8 +3532,13 @@ if ([filterSettings objectForKey:@"secondBetweenField"]) secondBetweenValueToRestore = [[NSString alloc] initWithString:[filterSettings objectForKey:@"secondBetweenField"]]; } else { - if ([filterSettings objectForKey:@"filterValue"] && ![[filterSettings objectForKey:@"filterValue"] isNSNull]) - filterValueToRestore = [[NSString alloc] initWithString:[filterSettings objectForKey:@"filterValue"]]; + if ([filterSettings objectForKey:@"filterValue"] && ![[filterSettings objectForKey:@"filterValue"] isNSNull]) { + if ([[filterSettings objectForKey:@"filterValue"] isKindOfClass:[NSData class]]) { + filterValueToRestore = [[NSString alloc] initWithData:[filterSettings objectForKey:@"filterValue"] encoding:[mySQLConnection stringEncoding]]; + } else { + filterValueToRestore = [[NSString alloc] initWithString:[filterSettings objectForKey:@"filterValue"]]; + } + } } } } -- cgit v1.2.3