aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCustomQuery.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2011-05-20 17:13:19 +0000
committerBibiko <bibiko@eva.mpg.de>2011-05-20 17:13:19 +0000
commit5c7a20ad6fee72b38b5190e5c306741ba954cee2 (patch)
tree0f5c2be2fe3c1ff25f144afb28bb052218f9023e /Source/SPCustomQuery.m
parentaaccbeabcce357e24f09ed55dc911a2672fe11d9 (diff)
downloadsequelpro-5c7a20ad6fee72b38b5190e5c306741ba954cee2.tar.gz
sequelpro-5c7a20ad6fee72b38b5190e5c306741ba954cee2.tar.bz2
sequelpro-5c7a20ad6fee72b38b5190e5c306741ba954cee2.zip
• changed the MySQL web search path
- since Oracle provides the search engine we lost the chance to search for a given language and MySQL version; due to that fact we assume that the search term by itself is the name of a valid HTML file within the dev.mysql.com domain, if not it falls back to Oracle's search engine but unfortunately with the extension ".html" which leads sometimes to no hits - it's needed to find a better way
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r--Source/SPCustomQuery.m9
1 files changed, 5 insertions, 4 deletions
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]]];
}