Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c820b98

Browse files
authored
eliminated new transaction creation of check
Processed check iа commit occured without starting new trancation
1 parent 6f555c2 commit c820b98

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

source/core/types/ut_executable.tpb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ create or replace type body ut_executable is
7575

7676
l_completed_without_errors boolean := true;
7777
l_start_transaction_id varchar2(250);
78+
l_end_transaction_id varchar2(250);
7879
procedure save_dbms_output is
7980
l_status number;
8081
l_line varchar2(32767);
@@ -139,7 +140,8 @@ create or replace type body ut_executable is
139140
--listener - after call to executable
140141
a_listener.fire_after_event(self.associated_event_name, a_item);
141142

142-
if l_start_transaction_id != dbms_transaction.local_transaction_id(true) then
143+
l_end_transaction_id := dbms_transaction.local_transaction_id();
144+
if l_start_transaction_id != l_end_transaction_id or l_end_transaction_id is null then
143145
a_item.add_transaction_invalidator(self.form_name());
144146
end if;
145147
end if;

0 commit comments

Comments
 (0)