[freeside-commits] freeside/FS/FS cust_bill_pkg_detail.pm, 1.12, 1.13
Ivan,,,
ivan at wavetail.420.am
Fri Mar 26 23:21:55 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv13099
Modified Files:
cust_bill_pkg_detail.pm
Log Message:
fix cust_bill_pkg_detail throwing a fatal error w/MySQL
Index: cust_bill_pkg_detail.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill_pkg_detail.pm,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -w -d -r1.12 -r1.13
--- cust_bill_pkg_detail.pm 30 Dec 2009 02:39:39 -0000 1.12
+++ cust_bill_pkg_detail.pm 27 Mar 2010 06:21:53 -0000 1.13
@@ -241,8 +241,8 @@
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' ) {
More information about the freeside-commits
mailing list