my ($dbh, $sth, $query, %saved, $dumped);
- $dbh = $form->dbconnect_noauto($myconfig);
+ $dbh = $form->get_standard_dbh;
+ $dbh->begin_work;
my ($module, $submodule) = $self->get_module($form);
do_query($form, $dbh, $query, $draft_description, $dumped, $form->{login}, $draft_id);
$dbh->commit();
- $dbh->disconnect();
$form->{draft_id} = $draft_id;
$form->{draft_description} = $draft_description;
my ($dbh, $sth, $query, @values);
- $dbh = $form->dbconnect($myconfig);
+ $dbh = $form->get_standard_dbh;
$query = qq|SELECT id, description, form FROM drafts WHERE id = ?|;
}
$sth->finish();
- $dbh->disconnect();
-
$main::lxdebug->leave_sub();
return @values;
my ($dbh, $sth, $query);
- $dbh = $form->dbconnect($myconfig);
+ $dbh = $form->get_standard_dbh;
$query = qq|DELETE FROM drafts WHERE id IN (| . join(", ", map { "?" } @draft_ids) . qq|)|;
do_query($form, $dbh, $query, @draft_ids);
- $dbh->disconnect();
-
$main::lxdebug->leave_sub();
}