X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDBConnect.pm;h=9fcf7f412a7081475a3a37d6f8a1f1c30ba9c400;hb=f8fff60be1abb9986486cc7367747ee16d829116;hp=4ee48733f612e68991c021b87334ed07c55a490c;hpb=c51601f019f963dcdc875469514aa40802b5c574;p=kivitendo-erp.git diff --git a/SL/DBConnect.pm b/SL/DBConnect.pm index 4ee48733f..9fcf7f412 100644 --- a/SL/DBConnect.pm +++ b/SL/DBConnect.pm @@ -16,7 +16,6 @@ my %dateformat_to_datestyle = ( sub _connect { my ($self, @args) = @_; - @args = $self->get_connect_args if !@args; return DBI->connect(@args) unless $::lx_office_conf{debug} && $::lx_office_conf{debug}->{dbix_log4perl}; @@ -33,6 +32,7 @@ sub _connect { sub connect { my ($self, @args) = @_; + @args = $self->get_connect_args if !@args; my $initial_sql = $self->get_initial_sql; if (my $cached_dbh = SL::DBConnect::Cache->get(@args, $initial_sql)) { @@ -119,7 +119,7 @@ optionally routing through DBIx::Log4perl Connects to the database. If the configuration parameter C is set then the call is made through -L. Otherwise L is called directly. +L. Otherwise L is called directly. In each case C<@dbi_args> is passed through as-is.