(plugin) database::postgres - mode backends fix --noidle option (#3982)

This commit is contained in:
qgarnier 2022-10-13 08:44:00 +02:00 committed by GitHub
parent 8078e69cb4
commit 7ba30060b5
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ sub run {
my $noidle = '';
if (defined($self->{option_results}->{noidle})) {
if ($self->{sql}->is_version_minimum(version => '9.2')) {
if ($options{sql}->is_version_minimum(version => '9.2')) {
$noidle = " AND state <> 'idle'";
} else {
$noidle = " AND current_query <> '<IDLE>'";