improve behavior of != operator
authormark <mark>
Fri, 30 Dec 2011 22:12:01 +0000 (22:12 +0000)
committermark <mark>
Fri, 30 Dec 2011 22:12:01 +0000 (22:12 +0000)
FS/FS/Record.pm

index 126b0cb..a9d15cb 100644 (file)
@@ -662,6 +662,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