From: Dan Scott Date: Wed, 19 Jun 2013 20:49:14 +0000 (-0400) Subject: Silence QP warning due to inappropriate cmp op X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cb7fb21c45329fd3b4f17dc4721e7f1e28ce0aab;p=evergreen%2Ftadl.git Silence QP warning due to inappropriate cmp op In QueryParser, we're comparing two strings, but using the numeric != operator. Switching to the 'ne' operator silences a warning that came up 7,000 today in our logs so far... Signed-off-by: Dan Scott Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm index c41f163fe1..431e26f38b 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm @@ -947,7 +947,7 @@ sub flatten { . ${spc} x 2 ."AND ${talias}.field IN (". join(',', @field_ids) . ")\n" . "${spc})"; - if ($join_type != 'INNER') { + if ($join_type ne 'INNER') { my $NOT = $node->negate ? '' : ' NOT'; $where .= "${talias}.id IS$NOT NULL"; } elsif ($where ne '') {