summaryrefslogtreecommitdiff
path: root/mysql-test/lib/My/Options.pm
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2010-03-03 22:22:02 +0300
committerAlexander Nozdrin <alik@sun.com>2010-03-03 22:22:02 +0300
commit0b1d317b232db27d04afc0f51eab4a019108fda4 (patch)
tree80f890fb98b57ee5ce2c2515d1d6d132809cddc7 /mysql-test/lib/My/Options.pm
parent50608a0b4b2ff67bf368ccb92797f43b4e231292 (diff)
downloadmariadb-git-0b1d317b232db27d04afc0f51eab4a019108fda4.tar.gz
A follow-up on WL#5154 and WL#5182: remove forgotten options.
Diffstat (limited to 'mysql-test/lib/My/Options.pm')
-rw-r--r--mysql-test/lib/My/Options.pm20
1 files changed, 4 insertions, 16 deletions
diff --git a/mysql-test/lib/My/Options.pm b/mysql-test/lib/My/Options.pm
index 40f05c41d1c..3bfbe1fc90e 100644
--- a/mysql-test/lib/My/Options.pm
+++ b/mysql-test/lib/My/Options.pm
@@ -67,9 +67,6 @@ sub _split_option {
elsif ($option=~ /^(.*)=(.*)$/){
return ($1, $2)
}
- elsif ($option=~ /^-O$/){
- return (undef, undef);
- }
die "Unknown option format '$option'";
}
@@ -169,20 +166,11 @@ sub toSQL {
my @sql;
foreach my $option (@options) {
- my ($name, $value)= _split_option($option);
- #print "name: $name\n";
+ my ($sql_name, $value)= _split_option($option);
+ #print "name: $sql_name\n";
#print "value: $value\n";
- if ($name =~ /^O, (.*)/){
- push(@sql, "SET GLOBAL $1=$value");
- }
- elsif ($name =~ /^set-variable=(.*)/){
- push(@sql, "SET GLOBAL $1=$value");
- }
- else {
- my $sql_name= $name;
- $sql_name=~ s/-/_/g;
- push(@sql, "SET GLOBAL $sql_name=$value");
- }
+ $sql_name=~ s/-/_/g;
+ push(@sql, "SET GLOBAL $sql_name=$value");
}
return join("; ", @sql);
}