Commit a382cb83 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

"append" parameters are now always appended to the end of the command

parent ca4171b2
......@@ -261,7 +261,6 @@ sub to_cmd {
push @cmd, '-p'.$hidden_password if $self->password;
push @cmd, ('-e', $sqlcmd) if $sqlcmd;
push @cmd, $dbname if $dbname;
push @cmd, @$append if ($append && @$append);
} elsif($driver eq 'pgsql') {
$executable ||= 'psql';
......@@ -273,7 +272,6 @@ sub to_cmd {
push @cmd, ('-p', $self->port) if defined($self->port);
push @cmd, ('-U', $self->username) if defined($self->username);
push @cmd, ('-c', $sqlcmd) if $sqlcmd;
push @cmd, @$append if ($append && @$append);
push @cmd, $dbname if $dbname;
} elsif($driver eq 'sqlite') {
......@@ -283,11 +281,12 @@ sub to_cmd {
push @cmd, $executable;
push @cmd, @$prepend if ($prepend && @$prepend);
push @cmd, @$append if ($append && @$append);
push @cmd, $dbname;
push @cmd, $sqlcmd if $sqlcmd;
}
push @cmd, @$append if ($append && @$append);
return \@cmd;
}
1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment