[freeside-commits] branch master updated. f263d9c5f3fa07442faadd9000aaad7275892f8e
Ivan
ivan at 420.am
Wed Dec 9 14:39:34 PST 2015
The branch, master has been updated
via f263d9c5f3fa07442faadd9000aaad7275892f8e (commit)
from 457e0196ba9bb87ecbbc82931b2f14d3195559f2 (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 f263d9c5f3fa07442faadd9000aaad7275892f8e
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Dec 9 14:39:33 2015 -0800
fix DBI connection string, RT#39250
diff --git a/FS/bin/freeside-cdr-asterisk_sql b/FS/bin/freeside-cdr-asterisk_sql
index 8b51681..160780b 100755
--- a/FS/bin/freeside-cdr-asterisk_sql
+++ b/FS/bin/freeside-cdr-asterisk_sql
@@ -16,8 +16,8 @@ my $user = shift or die &usage;
my $engine = $opt{e} || 'mysql';
my $dsn = "dbi:$engine";
-$dsn .= ":database=$opt{D}" if $opt{D};
-$dsn .= ":host=$opt{H}" if $opt{H};
+$dsn .= ":database=$opt{D}"; # if $opt{D};
+$dsn .= ";host=$opt{H}" if $opt{H};
my $dbi = DBI->connect($dsn, $opt{U}, $opt{P})
or die $DBI::errstr;
-----------------------------------------------------------------------
Summary of changes:
FS/bin/freeside-cdr-asterisk_sql | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list