From 00d22e6b4a53817ac9a6543e627f1e7e1d74e7ac Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 14 Jan 2022 15:23:26 +0100 Subject: [PATCH] fix(mssql): mode backup-age - uninitialized value (#3402) --- database/mssql/mode/backupage.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database/mssql/mode/backupage.pm b/database/mssql/mode/backupage.pm index 5fead8ad8..eb5e5e4f8 100644 --- a/database/mssql/mode/backupage.pm +++ b/database/mssql/mode/backupage.pm @@ -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();