fix postgres command line (#2272)

This commit is contained in:
qgarnier 2020-10-21 09:32:03 +02:00 committed by GitHub
parent 97e1bb5223
commit f06b70032e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 15 deletions

View File

@ -29,10 +29,6 @@ sub new {
my ($class, %options) = @_;
my $self = {};
bless $self, $class;
# $options{options} = options object
# $options{output} = output object
# $options{exit_value} = integer
# $options{noptions} = integer
if (!defined($options{output})) {
print "Class psqlcmd: Need to specify 'output' argument.\n";
@ -188,6 +184,7 @@ sub command_execution {
command_options => join(' ', @{$self->{args}}) . ' -c "' . $options{request} . '"',
wait_exit => 1,
redirect_stderr => 1,
no_quit => 1,
options => { timeout => 30 }
);