Commit d13e8d6
committed
fix: allow SQLERRM in procedures when package has EXCEPTION variables
When a package declares user-defined EXCEPTION variables at package
scope, passing SQLERRM to procedures from exception handlers would fail
with "exception variables cannot be used in this context".
The root cause was in is_const_datum() which threw an error when
encountering EXCEPTION datums. This function is called when iterating
over datums during subprocedure calls to determine which variables need
to be copied between stack frames.
EXCEPTION variables are constant identifiers that don't need copying,
so returning true (constant) is the correct behavior - it causes callers
to skip them appropriately.
Fixes IvorySQL#11511 parent 5acc6bb commit d13e8d6
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3068 | 3068 | | |
3069 | 3069 | | |
3070 | 3070 | | |
3071 | | - | |
3072 | | - | |
3073 | | - | |
3074 | | - | |
3075 | | - | |
| 3071 | + | |
| 3072 | + | |
| 3073 | + | |
| 3074 | + | |
| 3075 | + | |
| 3076 | + | |
3076 | 3077 | | |
3077 | 3078 | | |
3078 | 3079 | | |
| |||
0 commit comments