]> granicus.if.org Git - pgbadger/commitdiff
Fix wrong variable for user and database filter.
authorVincent Picavet <vincent.picavet@oslandia.com>
Fri, 1 Jun 2012 10:21:12 +0000 (10:21 +0000)
committerVincent Picavet <vincent.picavet@oslandia.com>
Fri, 1 Jun 2012 10:21:12 +0000 (10:21 +0000)
pgbadger

index 28cb6f49448065040573b11044f0b79abe7c0795..992c2ec6bb73b88b78001a93e9bf893e69480a06 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -1925,14 +1925,14 @@ sub parse_query
                # Check user and/or database if require
                if ($dbname) {
                        # Log line do not match the required dbname
-                       if (!$cur_info{dbname} || ($dbname ne $cur_info{dbname})) {
+                       if (!$t_dbname || ($dbname ne $t_dbname)) {
                                %cur_info = ();
                                return;
                        }
                }
                if ($dbuser) {
                        # Log line do not match the required dbuser
-                       if (!$cur_info{dbuser} || ($dbuser ne $cur_info{dbuser})) {
+                       if (!$t_dbuser || ($dbuser ne $t_dbuser)) {
                                %cur_info = ();
                                return;
                        }