[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 7f9bbe7c83afc8e96ea160610f3a42d522c5da1b
Ivan
ivan at 420.am
Sat Jun 2 00:39:12 PDT 2012
The branch, FREESIDE_2_3_BRANCH has been updated
via 7f9bbe7c83afc8e96ea160610f3a42d522c5da1b (commit)
from 23b34df8477f859546f22b7fc8bc1a7daa3019c3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7f9bbe7c83afc8e96ea160610f3a42d522c5da1b
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sat Jun 2 00:39:08 2012 -0700
time parts of cust_main upgrade, RT#17629
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index a277282..0e40e08 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -5074,9 +5074,12 @@ sub _upgrade_data { #class method
#DCRD to be safe
"UPDATE cust_main SET payby = 'DCRD' WHERE payby = 'BILL' and length(payinfo) = 16 and payinfo ". regexp_sql. q( '^[0-9]*$' );
+ my $t = time;
foreach my $sql ( @statements ) {
my $sth = dbh->prepare($sql) or die dbh->errstr;
$sth->execute or die $sth->errstr;
+ warn (time - $t). " seconds\n";
+ $t = time;
}
local($ignore_expired_card) = 1;
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_main.pm | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
More information about the freeside-commits
mailing list