X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/18166576c2ebbeb777700de5f290ac3af23a00fd..d8ac08282dad52789b8bea785e8cddae44085483:/SL/DBConnect.pm diff --git a/SL/DBConnect.pm b/SL/DBConnect.pm index 4e084502a..3ad5dfdf7 100644 --- a/SL/DBConnect.pm +++ b/SL/DBConnect.pm @@ -7,6 +7,13 @@ use DBI; sub connect { shift; + # print STDERR "Starting full caller dump:\n"; + # my $level = 0; + # while (my ($dummy, $filename, $line, $subroutine) = caller $level) { + # print STDERR " ${subroutine} from ${filename}:${line}\n"; + # $level++; + # } + return DBI->connect(@_) unless $::lx_office_conf{debug} && $::lx_office_conf{debug}->{dbix_log4perl}; require Log::Log4perl; @@ -20,4 +27,14 @@ sub connect { return DBIx::Log4perl->connect(@_); } +sub get_options { + my $self = shift; + my $options = { + pg_enable_utf8 => $::locale->is_utf8, + @_ + }; + + return $options; +} + 1;