(plugin) database::mssql - fix list-databases undefined value (#3618)

This commit is contained in:
qgarnier 2022-04-22 16:24:29 +02:00 committed by GitHub
parent ecb48c3a7d
commit bcb3393e56
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ sub manage_selection {
FROM sys.databases D
});
my $result = $self->{sql}->fetchall_arrayref();
my $result = $options{sql}->fetchall_arrayref();
my $databases = {};
foreach (@$result) {
next if (defined($self->{option_results}->{filter_database}) && $self->{option_results}->{filter_database} ne '' &&