Fix sub transaction commit bug in oracle_fdw.
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user