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 3775f3c46c
commit 00d22e6b4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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