summaryrefslogtreecommitdiff
path: root/torrus/perllib/Torrus/SQL.pm
diff options
context:
space:
mode:
authorMitch Jackson <mitch@freeside.biz>2019-03-03 19:42:10 -0500
committerMitch Jackson <mitch@freeside.biz>2019-03-03 19:53:52 -0500
commitd417ecbed3d356919ae80317c33a9143e20646ef (patch)
treedae9e8e397baba64f43852eedbcd8cfd3250776c /torrus/perllib/Torrus/SQL.pm
parent863879eae9bc840432b09750eae6e552e9bbe205 (diff)
RT# 82942 Replace DBI->connect() with FS::DBI->connect()
Diffstat (limited to 'torrus/perllib/Torrus/SQL.pm')
-rw-r--r--torrus/perllib/Torrus/SQL.pm16
1 files changed, 10 insertions, 6 deletions
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
{