fix postgres command line (#2272)
This commit is contained in:
parent
97e1bb5223
commit
f06b70032e
|
@ -29,10 +29,6 @@ sub new {
|
||||||
my ($class, %options) = @_;
|
my ($class, %options) = @_;
|
||||||
my $self = {};
|
my $self = {};
|
||||||
bless $self, $class;
|
bless $self, $class;
|
||||||
# $options{options} = options object
|
|
||||||
# $options{output} = output object
|
|
||||||
# $options{exit_value} = integer
|
|
||||||
# $options{noptions} = integer
|
|
||||||
|
|
||||||
if (!defined($options{output})) {
|
if (!defined($options{output})) {
|
||||||
print "Class psqlcmd: Need to specify 'output' argument.\n";
|
print "Class psqlcmd: Need to specify 'output' argument.\n";
|
||||||
|
@ -188,6 +184,7 @@ sub command_execution {
|
||||||
command_options => join(' ', @{$self->{args}}) . ' -c "' . $options{request} . '"',
|
command_options => join(' ', @{$self->{args}}) . ' -c "' . $options{request} . '"',
|
||||||
wait_exit => 1,
|
wait_exit => 1,
|
||||||
redirect_stderr => 1,
|
redirect_stderr => 1,
|
||||||
|
no_quit => 1,
|
||||||
options => { timeout => 30 }
|
options => { timeout => 30 }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue