aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCustomQuery.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-06-20 22:26:12 +0000
committerrowanbeentje <rowan@beent.je>2012-06-20 22:26:12 +0000
commit8e0b53929282dd4ccc53feb0f512682989e19cb4 (patch)
treeac461f02b6a3e1830e02b307024d3161e211f8ec /Source/SPCustomQuery.m
parenta395fa908f4ce95355e7e6aaf1d31a75ee3e31f5 (diff)
downloadsequelpro-8e0b53929282dd4ccc53feb0f512682989e19cb4.tar.gz
sequelpro-8e0b53929282dd4ccc53feb0f512682989e19cb4.tar.bz2
sequelpro-8e0b53929282dd4ccc53feb0f512682989e19cb4.zip
- Ensure that help results are returned as strings to try and address issues with 4.1.x servers (Issue #1378)
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r--Source/SPCustomQuery.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m
index 4d61461f..07dae0ed 100644
--- a/Source/SPCustomQuery.m
+++ b/Source/SPCustomQuery.m
@@ -3063,6 +3063,7 @@
[helpWebViewWindow close];
return SP_HELP_NOT_AVAILABLE;
}
+
// nothing found?
if(![theResult numberOfRows]) {
@@ -3073,6 +3074,10 @@
if(![theResult numberOfRows])
return @"";
}
+
+ // Ensure rows are returned as strings to prevent data problems with older 4.1 servers
+ [theResult setReturnDataAsStrings:YES];
+
tableDetails = [[NSDictionary alloc] initWithDictionary:[theResult getRowAsDictionary]];
if ([tableDetails objectForKey:@"description"]) { // one single help topic found