From 6f741b430004136f7d233a5b41b717d42377dc4b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 20 Jun 2013 18:46:33 +0200 Subject: [PATCH] =?utf8?q?Zirkul=C3=A4res=20Include=20zwischen=20SL::DBCon?= =?utf8?q?nect=20und=20SL::DB=20aufbrechen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SL/DB.pm b/SL/DB.pm index f5c408d3e..0adac9ca8 100644 --- a/SL/DB.pm +++ b/SL/DB.pm @@ -4,7 +4,6 @@ use strict; use Carp; use Data::Dumper; -use SL::DBConnect; use English qw(-no_match_vars); use Rose::DB; use Rose::DBx::Cache::Anywhere; @@ -19,6 +18,8 @@ my (%_db_registered); sub dbi_connect { shift; + # runtime require to break circular include + require SL::DBConnect; return SL::DBConnect->connect(@_); } @@ -37,6 +38,7 @@ sub _register_db { my $domain = shift; my $type = shift; + require SL::DBConnect; my %specific_connect_settings; my %common_connect_settings = ( driver => 'Pg', -- 2.20.1