Revision 20fb5523
Von Sven Schöling vor mehr als 8 Jahren hinzugefügt
SL/GL.pm | ||
---|---|---|
217 | 217 |
my ($self, $myconfig, $form) = @_; |
218 | 218 |
$main::lxdebug->enter_sub(); |
219 | 219 |
|
220 |
# connect to database |
|
221 |
my $dbh = $form->dbconnect($myconfig); |
|
220 |
my $dbh = SL::DB->client->dbh; |
|
222 | 221 |
my ($query, $sth, $source, $null, $space); |
223 | 222 |
|
224 | 223 |
my ($glwhere, $arwhere, $apwhere) = ("1 = 1", "1 = 1", "1 = 1"); |
... | ... | |
617 | 616 |
($form->{account_description}) = selectrow_query($form, $dbh, $query, $form->{accno}); |
618 | 617 |
} |
619 | 618 |
|
620 |
$dbh->disconnect; |
|
621 |
|
|
622 | 619 |
$main::lxdebug->leave_sub(); |
623 | 620 |
} |
624 | 621 |
|
... | ... | |
628 | 625 |
|
629 | 626 |
my ($query, $sth, $ref, @values); |
630 | 627 |
|
631 |
# connect to database |
|
632 |
my $dbh = $form->dbconnect($myconfig); |
|
628 |
my $dbh = SL::DB->client->dbh; |
|
633 | 629 |
|
634 | 630 |
$query = qq|SELECT closedto, revtrans FROM defaults|; |
635 | 631 |
($form->{closedto}, $form->{revtrans}) = selectrow_query($form, $dbh, $query); |
... | ... | |
701 | 697 |
ORDER BY c.accno|; |
702 | 698 |
$form->{chart} = selectall_hashref_query($form, $dbh, $query, conv_date($form->{transdate})); |
703 | 699 |
|
704 |
$dbh->disconnect; |
|
705 |
|
|
706 | 700 |
$main::lxdebug->leave_sub(); |
707 | 701 |
} |
708 | 702 |
|
Auch abrufbar als: Unified diff
GL: single-dbh disconnects