aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-06-12 12:24:59 +0000
committerrowanbeentje <rowan@beent.je>2011-06-12 12:24:59 +0000
commit1434da05485e61c5ea7950b09ecde40cae8e3122 (patch)
treea90c07ccc6aac88c221ddcf9869cddc279ead4ad /Source/SPTableContent.m
parent0435b9a58299aceb6753bcbe8706825b03d67fad (diff)
downloadsequelpro-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)
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m9
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"]];
+ }
+ }
}
}
}