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