summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormark <mark>2011-12-30 22:12:01 +0000
committermark <mark>2011-12-30 22:12:01 +0000
commitd5109b4395d35a615f36fc7629803c24d489c516 (patch)
tree7680f21e17d9ce8e7b2d642bdf24800d46e69582
parentabe8940d3dc6f0ead47af95c660ee7038c747214 (diff)
improve behavior of != operator
-rw-r--r--FS/FS/Record.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm
index 126b0cb31..a9d15cb25 100644
--- a/FS/FS/Record.pm
+++ b/FS/FS/Record.pm
@@ -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