Fix sub transaction commit bug in oracle_fdw.

This commit is contained in:
TotaJ
2020-08-15 11:22:12 +08:00
parent 7e2384c323
commit d0658b7a25
2 changed files with 3 additions and 3 deletions

View File

@ -91,5 +91,5 @@ test: pmk
test: hw_datatype hw_datatype_2 hw_datatype_3
test: test_regex llt_atc
test: llt_coverage_atc
test: llt_coverage_atc postgres_fdw

View File

@ -537,8 +537,8 @@ index e75b6ab..113dda5 100644
/* rollback to the appropriate savepoint on subtransaction abort */
- if (event == SUBXACT_EVENT_ABORT_SUB || event == SUBXACT_EVENT_PRE_COMMIT_SUB)
- oracleEndSubtransaction(arg, GetCurrentTransactionNestLevel(), event == SUBXACT_EVENT_PRE_COMMIT_SUB);
+ if (event == SUBXACT_EVENT_ABORT_SUB)
+ oracleEndSubtransaction(arg, GetCurrentTransactionNestLevel(), false);
+ if (event == SUBXACT_EVENT_ABORT_SUB || event == SUBXACT_EVENT_COMMIT_SUB)
+ oracleEndSubtransaction(arg, GetCurrentTransactionNestLevel(), event == SUBXACT_EVENT_COMMIT_SUB);
}
/*