跨事务trigger在initialize时,要加上later标识
This commit is contained in:
parent
80bc19e0f3
commit
8380982fc4
|
|
@ -43,7 +43,7 @@ class TriggerExecutor {
|
||||||
if (!context.getCurrentTxnId()) {
|
if (!context.getCurrentTxnId()) {
|
||||||
await context.begin();
|
await context.begin();
|
||||||
}
|
}
|
||||||
await context.initialize(JSON.parse(cxtStr));
|
await context.initialize(JSON.parse(cxtStr), true);
|
||||||
try {
|
try {
|
||||||
await this.execVolatileTrigger(entity, trigger.name, ids, context, option);
|
await this.execVolatileTrigger(entity, trigger.name, ids, context, option);
|
||||||
await context.commit();
|
await context.commit();
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ export class TriggerExecutor<ED extends EntityDict & BaseEntityDict, Cxt extends
|
||||||
if (!context.getCurrentTxnId()) {
|
if (!context.getCurrentTxnId()) {
|
||||||
await context.begin();
|
await context.begin();
|
||||||
}
|
}
|
||||||
await context.initialize(JSON.parse(cxtStr));
|
await context.initialize(JSON.parse(cxtStr), true);
|
||||||
try {
|
try {
|
||||||
await this.execVolatileTrigger(entity, trigger.name, ids, context, option);
|
await this.execVolatileTrigger(entity, trigger.name, ids, context, option);
|
||||||
await context.commit();
|
await context.commit();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue