From 7ed6d5c8ee602dab7b65d13b8c4de458179f4ae1 Mon Sep 17 00:00:00 2001 From: Colin Gagnaire Date: Fri, 20 Jul 2018 14:32:24 +0200 Subject: [PATCH] fix mssql transactions case (#1067) --- database/mssql/mode/transactions.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/mssql/mode/transactions.pm b/database/mssql/mode/transactions.pm index d998accbf..1ef774dfa 100644 --- a/database/mssql/mode/transactions.pm +++ b/database/mssql/mode/transactions.pm @@ -62,7 +62,7 @@ sub run { $self->{sql} = $options{sql}; $self->{sql}->connect(); - $self->{sql}->query(query => q{SELECT cntr_value FROM sys.dm_os_performance_counters WHERE counter_name = 'transactions/sec' AND instance_name = '_Total'}); + $self->{sql}->query(query => q{SELECT cntr_value FROM sys.dm_os_performance_counters WHERE UPPER(counter_name) = UPPER('transactions/sec') AND instance_name = '_Total'}); my $transactions = $self->{sql}->fetchrow_array(); $self->{statefile_cache}->read(statefile => 'mssql_' . $self->{mode} . '_' . $self->{sql}->get_unique_id4save());