From: Sebastian Wiedenroth Date: Tue, 2 Sep 2014 10:41:30 +0000 (+0200) Subject: redis lookup returns false for things that should be true X-Git-Tag: exim-4_85_RC1~50^2 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/972af88e604546ee2ab1f817b8a098056065dd78?hp=972af88e604546ee2ab1f817b8a098056065dd78 redis lookup returns false for things that should be true If redis returns an integer the lookup code currently checks if the value is 1 and returns false for all other values. This is problematic if you want to use redis commands that return counts (ZCARD etc.) because you can't check for "does not exist" or "exists at least once". (It will be 0->false, 1->true, 2 or more-> false again) This commit changes the code to handle integer values like C: 0 is false and everything else is true. For the simple 0 and 1 values nothing changes to existing queries so this diff is backwards compatible. For queries that return other values exim now gets the bool that would be expected. ---