diff options
author | Guilhem Moulin <guilhem.moulin@ens-lyon.org> | 2012-02-17 21:11:35 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@ens-lyon.org> | 2012-02-17 21:13:11 +0100 |
commit | 2764618fb5825840466e6f003ec6df5e8ccdfe5e (patch) | |
tree | f39085d00deafbbea192aeb37801e8fe4f3bbaf5 /videomv.pl | |
parent | 653e1ff8bbd9307920cb933d4cb766179d3c3812 (diff) |
support of extra connections options (eg, ssl)
Diffstat (limited to 'videomv.pl')
-rwxr-xr-x | videomv.pl | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -379,6 +379,11 @@ my @real_directors = splitdir($real_directors); my ($dsn, $dbh, $RES, $nRES, $id); unless (defined $ignoredb_flag) { $dsn = "DBI:$config{driver}:database=$config{database};host=$config{hostname};port=$config{port}"; + if (exists $config{dbi_misc}) { + while (my ($k,$v) = each $config{dbi_misc}) { + $dsn .= ";$k=$v"; + } + } $dbh = DBI->connect($dsn, $config{user}, $config{password}) or die "Can't connect do database"; $dbh->do( "set names utf8" ) or die; |