fix(mssql): mode backup-age - uninitialized value (#3402)

This commit is contained in:
qgarnier 2022-01-14 15:23:26 +01:00 committed by GitHub
parent 7990ca026b
commit d7d45a6530

View File

@ -158,6 +158,8 @@ sub check_options {
sub manage_selection { sub manage_selection {
my ($self, %options) = @_; my ($self, %options) = @_;
$options{sql}->connect();
my $query = q{ my $query = q{
SELECT SELECT
a.name, a.name,
@ -194,7 +196,6 @@ sub manage_selection {
}; };
} }
$options{sql}->connect();
$options{sql}->query(query => $query); $options{sql}->query(query => $query);
my $result = $options{sql}->fetchall_arrayref(); my $result = $options{sql}->fetchall_arrayref();