[Astpp-commit] SF.net SVN: astpp:[2225] trunk/freeswitch/contrib/wasim/cdrload.pl
Brought to you by:
darrenkw
|
From: <dar...@us...> - 2009-01-31 19:58:09
|
Revision: 2225
http://astpp.svn.sourceforge.net/astpp/?rev=2225&view=rev
Author: darrenkw
Date: 2009-01-31 19:57:58 +0000 (Sat, 31 Jan 2009)
Log Message:
-----------
Corrected which table the data is getting placed into.
Modified Paths:
--------------
trunk/freeswitch/contrib/wasim/cdrload.pl
Modified: trunk/freeswitch/contrib/wasim/cdrload.pl
===================================================================
--- trunk/freeswitch/contrib/wasim/cdrload.pl 2009-01-31 18:53:47 UTC (rev 2224)
+++ trunk/freeswitch/contrib/wasim/cdrload.pl 2009-01-31 19:57:58 UTC (rev 2225)
@@ -36,7 +36,8 @@
foreach my $line (@LS) {
chop($line);
$ASTPP->debug($line);
- my $stm = "load data local infile '$line' into table TABLE fields enclosed by '\"' terminated by ','";
+ my $stm = "load data local infile '$line' into table $config->{freeswitch_cdr_table} fields enclosed by '\"' terminated by ','";
+ print STDERR $stm if $config->{debug} == 1;
my $ul = $cdr_db->prepare($stm)
or die "$0: Couldn't prepare statement $stm: " . $cdr_db->errstr;;
$ul->execute();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|