[freeside-commits] freeside/FS/FS cust_main.pm,1.229,1.230

Ivan,,, ivan at wavetail.420.am
Fri Aug 18 03:10:35 PDT 2006


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv18804

Modified Files:
	cust_main.pm 
Log Message:
what's going on with the parameters for skeleton inserts??

Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.229
retrieving revision 1.230
diff -u -d -r1.229 -r1.230
--- cust_main.pm	18 Aug 2006 10:00:20 -0000	1.229
+++ cust_main.pm	18 Aug 2006 10:10:33 -0000	1.230
@@ -540,11 +540,14 @@
 
     while ( my $row = $sel_sth->fetchrow_hashref ) {
 
-      my $ins_sth =
-        dbh->prepare("INSERT INTO $child_table $ins_columns".
-                     " VALUES $placeholders")
+      my $statement =
+        "INSERT INTO $child_table $ins_columns VALUES $placeholders";
+      my $ins_sth =dbh->prepare($statement)
           or return dbh->errstr;
-      $ins_sth->execute( $destid, map $row->{$_}, @ins_columns )
+      my @param = ( $destid, map $row->{$_}, @ins_columns );
+      warn "    $statement: [ ". join(', ', @param). " ]\n"
+        if $DEBUG > 2;
+      $ins_sth->execute( @param )
         or return $ins_sth->errstr;
 
       #next unless keys %{ $child_tables{$child_table} };



More information about the freeside-commits mailing list