diff options
author | ivan <ivan> | 2010-03-27 06:21:57 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-03-27 06:21:57 +0000 |
commit | eea5914ee823c7c0326c3abc6869fdf4162c7155 (patch) | |
tree | 9439830531459fcc3bd59878a0de079c3a4c31e2 | |
parent | 1d25ae2a3b49fd7a4413ec8f590a696fe13780e8 (diff) |
fix cust_bill_pkg_detail throwing a fatal error w/MySQL
-rw-r--r-- | FS/FS/cust_bill_pkg_detail.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/cust_bill_pkg_detail.pm b/FS/FS/cust_bill_pkg_detail.pm index f2e60d2f4..4d9ee8191 100644 --- a/FS/FS/cust_bill_pkg_detail.pm +++ b/FS/FS/cust_bill_pkg_detail.pm @@ -241,8 +241,8 @@ sub _upgrade_data { # class method warn "$me upgrading $class\n" if $DEBUG; - my $columndef = dbdef->table($class->table)->column('classnum'); - unless ($columndef->type eq 'int4') { + my $type = dbdef->table($class->table)->column('classnum')->type; + unless ( $type =~ /^int/i || $type =~ /int$/i ) { my $dbh = dbh; if ( $dbh->{Driver}->{Name} eq 'Pg' ) { |