X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=torrus%2Fperllib%2FTorrus%2FSQL.pm;h=bfd9351fb6b4f848596f06d789973948d8d5cca0;hp=de54cacee09249478c2233e30d125dcd0a7a1df3;hb=fcce61390d750f98bd82e84d4664ae9c03202be2;hpb=83eb68cd59af488d57c23b653f44a7ae9aa4a753 diff --git a/torrus/perllib/Torrus/SQL.pm b/torrus/perllib/Torrus/SQL.pm index de54cacee..bfd9351fb 100644 --- a/torrus/perllib/Torrus/SQL.pm +++ b/torrus/perllib/Torrus/SQL.pm @@ -124,16 +124,20 @@ sub dbh if( not defined( $dbh ) ) { - $dbh = DBI->connect( $attrs->{'dsn'}, - $attrs->{'username'}, - $attrs->{'password'}, - { 'PrintError' => 0, - 'AutoCommit' => 0 } ); + $dbh = FS::DBI->connect( + $attrs->{'dsn'}, + $attrs->{'username'}, + $attrs->{'password'}, + { + 'PrintError' => 0, + 'AutoCommit' => 0, + } + ); if( not defined( $dbh ) ) { Error('Error connecting to DBI source ' . $attrs->{'dsn'} . ': ' . - $DBI::errstr); + $FS::DBI::errstr); } else {