mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 11:45:32 +02:00
Remember dynamically set options as started
This commit is contained in:
parent
5a026a8679
commit
284f28d78f
2 changed files with 9 additions and 6 deletions
|
|
@ -168,9 +168,14 @@ sub toSQL {
|
|||
foreach my $option (@options) {
|
||||
my ($name, $value)= _split_option($option);
|
||||
#print "name: $name\n";
|
||||
#print "value: $value\n";
|
||||
if ($name =~ /^O, (.*)/){
|
||||
push(@sql, "SET GLOBAL $1=$value");
|
||||
} else {
|
||||
}
|
||||
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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue