aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-12-05 11:07:53 +0000
committerBibiko <bibiko@eva.mpg.de>2009-12-05 11:07:53 +0000
commita3f0d1bfc942ad23c07465f6f3306e42b4ab0118 (patch)
tree4336fa735ab2590ec797df9e64c4470c03488016 /Source
parentaedee4ef796c779fe3b18fd28fc41cad88243b36 (diff)
downloadsequelpro-a3f0d1bfc942ad23c07465f6f3306e42b4ab0118.tar.gz
sequelpro-a3f0d1bfc942ad23c07465f6f3306e42b4ab0118.tar.bz2
sequelpro-a3f0d1bfc942ad23c07465f6f3306e42b4ab0118.zip
• fixed URL of MySQL web search for versions < = 4.1
Diffstat (limited to 'Source')
-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]]];
}