Revision 0e0dfd4f
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DBConnect.pm | ||
---|---|---|
28 | 28 |
my $db_cfg = SL::DB->registry->entry(domain => $domain, type => $type) || { }; |
29 | 29 |
|
30 | 30 |
return ( |
31 |
'dbi:' . $db_cfg->{dbi_driver} . ':dbname=' . $db_cfg->{database} . ';host=' . ($db_cfg->{host} || 'localhost') . ';port=' . ($db_cfg->{port} || 5432),
|
|
31 |
'dbi:Pg:dbname=' . $db_cfg->{database} . ';host=' . ($db_cfg->{host} || 'localhost') . ';port=' . ($db_cfg->{port} || 5432),
|
|
32 | 32 |
$db_cfg->{username}, |
33 | 33 |
$db_cfg->{password}, |
34 | 34 |
$self->get_options(%{ $db_cfg->{connect_options} || {} }, @args), |
Auch abrufbar als: Unified diff
fixup: Pg hardcoden