We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07c93ca commit e3409deCopy full SHA for e3409de
check_postgres.pl
@@ -8101,8 +8101,8 @@ sub check_txn_idle {
8101
next if skip_item($r->{datname});
8102
8103
## We do a lot of filtering based on the current_query or state in 9.2+
8104
- my $cq = $r->{query} // $r->{current_query};
8105
- my $st = $r->{state} // '';
+ my $cq = defined($r->{query}) ? $r->{query} : $r->{current_query};
+ my $st = defined($r->{state}) ? $r->{state} : '';
8106
8107
## Return unknown if we cannot see because we are a non-superuser
8108
if ($cq =~ /insufficient/) {
0 commit comments