summaryrefslogtreecommitdiff
path: root/FS/FS/Record.pm
diff options
context:
space:
mode:
authormark <mark>2011-12-30 22:11:36 +0000
committermark <mark>2011-12-30 22:11:36 +0000
commitf84042a59546eedba93a9d47c5d20fc28cb1e158 (patch)
tree1b5cb3dfb1d7373aba13d7e38a732a7fb95ba671 /FS/FS/Record.pm
parent399b04d522b22e593a9fa7463851be6d121ae4cf (diff)
improve behavior of != operator
Diffstat (limited to 'FS/FS/Record.pm')
-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 6773487..598cb6a 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