From: ivan Date: Tue, 4 Nov 2003 10:55:44 +0000 (+0000) Subject: treat serial columns as ints too! X-Git-Tag: freeside_1_4_2beta1~410 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=721f9eb78e758e2b695cc4f4ec888b67c20c9bb5;p=freeside.git treat serial columns as ints too! --- diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 83f1c540c..1f9bd5c87 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -235,7 +235,8 @@ sub qsearch { } } elsif ( $op eq '!=' ) { if ( driver_name eq 'Pg' ) { - if ( $dbdef->table($table)->column($column)->type =~ /(int)/i ) { + my $type = $dbdef->table($table)->column($column)->type; + if ( $type =~ /(int|serial)/i ) { qq-( $column IS NOT NULL )-; } else { qq-( $column IS NOT NULL AND $column != '' )-;