Commit 31c1136
committed
Fix parallel query crashes by adding NULL check for exec_state_call_stack in plsql_TriggerRecursiveCheck
In parallel workers, the exec_state_call_stack global variable is NULL
because parallel workers don't have the PL/tsql execution context.
When the plsql_TriggerRecursiveCheck hook is called from parallel
workers during query execution, it would crash trying to dereference
the NULL pointer.
This fix adds a NULL check to plsql_TriggerRecursiveCheck() in hooks.c
that returns false (not a recursive trigger) if exec_state_call_stack
is NULL. This is the safe default behavior.1 parent f580b8d commit 31c1136
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1682 | 1682 | | |
1683 | 1683 | | |
1684 | 1684 | | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
1685 | 1688 | | |
1686 | 1689 | | |
1687 | 1690 | | |
| |||
0 commit comments