aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPConstants.m2
-rw-r--r--Source/SPCustomQuery.m9
2 files changed, 6 insertions, 5 deletions
diff --git a/Source/SPConstants.m b/Source/SPConstants.m
index 372987ed..8b524666 100644
--- a/Source/SPConstants.m
+++ b/Source/SPConstants.m
@@ -210,7 +210,7 @@ NSString *SPBundleDeletedDefaultBundlesKey = @"deletedDefaultBundles";
// URLs
NSString *SPDonationsURL = @"http://www.sequelpro.com/donate.html";
-NSString *SPMySQLSearchURL = @"http://search.mysql.com/search/query/search?q=%@&group=refman-%@";
+NSString *SPMySQLSearchURL = @"http://dev.mysql.com/doc/refman/%@/%@/%@.html";
NSString *SPDevURL = @"http://code.google.com/p/sequel-pro/";
// Toolbar constants
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m
index 507de79f..e51da22c 100644
--- a/Source/SPCustomQuery.m
+++ b/Source/SPCustomQuery.m
@@ -3073,15 +3073,16 @@
{
NSString *version = nil;
if([[mySQLversion stringByReplacingOccurrencesOfString:@"." withString:@""] integerValue] < 42)
- version = @"41";
+ version = @"4.1";
else
- version = [mySQLversion stringByReplacingOccurrencesOfString:@"." withString:@""];
+ version = [NSString stringWithString:mySQLversion];
+
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:
[[NSString stringWithFormat:
SPMySQLSearchURL,
- searchString,
version,
- NSLocalizedString(@"en", @"MySQL search language code - eg in http://search.mysql.com/search?q=select&site=refman-50&lr=lang_en")]
+ NSLocalizedString(@"en", @"MySQL search language code - eg in http://search.mysql.com/search?q=select&site=refman-50&lr=lang_en"),
+ searchString]
stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]]];
}