diff options
author | rowanbeentje <rowan@beent.je> | 2011-06-12 12:24:59 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2011-06-12 12:24:59 +0000 |
commit | 1434da05485e61c5ea7950b09ecde40cae8e3122 (patch) | |
tree | a90c07ccc6aac88c221ddcf9869cddc279ead4ad | |
parent | 0435b9a58299aceb6753bcbe8706825b03d67fad (diff) | |
download | sequelpro-1434da05485e61c5ea7950b09ecde40cae8e3122.tar.gz sequelpro-1434da05485e61c5ea7950b09ecde40cae8e3122.tar.bz2 sequelpro-1434da05485e61c5ea7950b09ecde40cae8e3122.zip |
- Add support for use of table relation "link" arrows on binary/blob data, fixing exceptions (eg log 3321)
-rw-r--r-- | Source/SPTableContent.m | 9 |
1 files 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"]]; + } + } } } } |