From a3f0d1bfc942ad23c07465f6f3306e42b4ab0118 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Sat, 5 Dec 2009 11:07:53 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20URL=20of=20MySQL=20web=20search=20f?= =?UTF-8?q?or=20versions=20<=20=3D=204.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/CustomQuery.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Source') 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]]]; } -- cgit v1.2.3