aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/CustomQuery.m7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index 69f3beb7..e620aba5 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -2343,11 +2343,16 @@
- (void)openMySQLonlineDocumentationWithString:(NSString *)searchString
{
+ NSString *version = nil;
+ if([[mySQLversion stringByReplacingOccurrencesOfString:@"." withString:@""] intValue] < 42)
+ version = @"41";
+ else
+ version = [mySQLversion stringByReplacingOccurrencesOfString:@"." withString:@""];
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:
[[NSString stringWithFormat:
SP_MYSQL_DEV_SEARCH_URL,
searchString,
- [mySQLversion stringByReplacingOccurrencesOfString:@"." withString:@""]]
+ version]
stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]]];
}