projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
749772c
)
Zirkuläres Include zwischen SL::DBConnect und SL::DB aufbrechen
author
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 20 Jun 2013 16:46:33 +0000
(18:46 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 25 Jun 2013 12:22:29 +0000
(14:22 +0200)
SL/DB.pm
patch
|
blob
|
history
diff --git
a/SL/DB.pm
b/SL/DB.pm
index
f5c408d
..
0adac9c
100644
(file)
--- 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',