Skip to content

Commit

Permalink
Release cursors for other db handle, DIY user dataset debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jaycolin committed Jul 12, 2022
1 parent 053a738 commit 436babe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Load/plugin/perl/InsertEntityGraph.pm
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ sub new {

sub run {
my ($self) = @_;
# 2022-07-12 debugging DIY user datasets
$self->getDbHandle()->do("alter session set RELEASE_CURSOR=YES");
$self->getQueryHandle()->do("alter session set RELEASE_CURSOR=YES");
$self->requireModelObjects();
$self->resetUndoTables(); # for when logRowsInserted() is called after loading
my $metaDataRoot = $self->getArg('metaDataRoot');
Expand Down Expand Up @@ -214,7 +217,9 @@ sub run {
# here and also in ApiCommonData::Load::Plugin::MBioInsertEntityGraph
sub loadInvestigation {
my ($self, $investigation, $extDbRlsId, $schema) = @_;
# 2022-07-12 debugging DIY user datasets
$self->getQueryHandle()->do("alter session set RELEASE_CURSOR=YES");
$self->getDbHandle()->do("alter session set RELEASE_CURSOR=YES");
do {
my %errors;
my $c = $investigation->{_on_error};
Expand Down

0 comments on commit 436babe

Please sign in to comment.