projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfd4099
)
time parts of cust_main upgrade, RT#17629
author
Ivan Kohler
<ivan@freeside.biz>
Sat, 2 Jun 2012 07:39:05 +0000
(
00:39
-0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Sat, 2 Jun 2012 07:39:05 +0000
(
00:39
-0700)
FS/FS/cust_main.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_main.pm
b/FS/FS/cust_main.pm
index
d4ddacc
..
d18ec1c
100644
(file)
--- a/
FS/FS/cust_main.pm
+++ b/
FS/FS/cust_main.pm
@@
-5057,9
+5057,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;