]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DBConnect.pm
fixup: Pg hardcoden
[mfinanz.git] / SL / DBConnect.pm
index e67d8d095ee0cc8d822a0d7fd6ba72bf0bbea600..aeb8719dac1340cc6c8f97e055df77cc975be21b 100644 (file)
@@ -28,7 +28,7 @@ sub get_connect_args {
   my $db_cfg          = SL::DB->registry->entry(domain => $domain, type => $type) || { };
 
   return (
-    'dbi:' . $db_cfg->{dbi_driver} . ':dbname=' . $db_cfg->{database} . ';host=' . ($db_cfg->{host} || 'localhost') . ';port=' . ($db_cfg->{port} || 5432),
+    'dbi:Pg:dbname=' . $db_cfg->{database} . ';host=' . ($db_cfg->{host} || 'localhost') . ';port=' . ($db_cfg->{port} || 5432),
     $db_cfg->{username},
     $db_cfg->{password},
     $self->get_options(%{ $db_cfg->{connect_options} || {} }, @args),