X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Facct_sql_status.pm;h=0e734315181d62c82ef0f5a3c8c68216916b0f52;hp=e6aeb20716494aea863f5eb74224fd2546843d66;hb=5372897f367498972c96f5494e142e6e11b29eb8;hpb=36d4c11cb8adf66c982c6f4c75b95fa4e6addd0b diff --git a/FS/FS/part_export/acct_sql_status.pm b/FS/FS/part_export/acct_sql_status.pm index e6aeb2071..0e7343151 100644 --- a/FS/FS/part_export/acct_sql_status.pm +++ b/FS/FS/part_export/acct_sql_status.pm @@ -5,6 +5,7 @@ use strict; use warnings; use vars qw( %info ); use Tie::IxHash; +use FS::DBI; tie my %options, 'Tie::IxHash', %{__PACKAGE__->sql_options}; delete $options{$_} for qw( table schema static primary_key ); @@ -14,6 +15,7 @@ delete $options{$_} for qw( table schema static primary_key ); 'desc' => 'Mailbox status information from SQL', 'options' => \%options, 'nodomain' => '', + 'no_machine' => 1, 'notes' => <connect( map $self->option($_), qw(datasrc username password) ) - or return "can't connect: ". $DBI::errstr; + my $dbh = FS::DBI->connect( map $self->option($_), qw(datasrc username password) ) + or return "can't connect: ". $FS::DBI::errstr; ### #vacation settings