From f84042a59546eedba93a9d47c5d20fc28cb1e158 Mon Sep 17 00:00:00 2001 From: mark Date: Fri, 30 Dec 2011 22:11:36 +0000 Subject: [PATCH] improve behavior of != operator --- FS/FS/Record.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 677348728..598cb6a77 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -577,6 +577,8 @@ sub get_real_fields { qq-( $column $op "" )-; } } + } elsif ( $op eq '!=' ) { + qq-( $column IS NULL OR $column != ? )-; #if this needs to be re-enabled, it needs to use a custom op like #"APPROX=" or something (better name?, not '=', to avoid affecting other # searches -- 2.11.0