[freeside-commits] branch FREESIDE_4_BRANCH updated. 60038d862886d0eb3e9ac7fda516786d3a1c3388
Ivan
ivan at 420.am
Wed Dec 9 14:39:35 PST 2015
The branch, FREESIDE_4_BRANCH has been updated
via 60038d862886d0eb3e9ac7fda516786d3a1c3388 (commit)
from 5bb96ee111a0ad97a26c82508c28d19ca9ada0f4 (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 60038d862886d0eb3e9ac7fda516786d3a1c3388
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Dec 9 14:39:34 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