Fix some const qualifier use in ri_triggers.c
Amit Langote <amitlan@postgresql.org>
Fix some const qualifier use in ri_triggers.c The ri_FetchConstraintInfo() and ri_LoadConstraintInfo() functions were declared to return const RI_ConstraintInfo *, but callers sometimes need to modify the struct, requiring casts to drop the const. Remove the misapplied const qualifiers and the casts that worked around them. Reported-by: Peter Eisentraut <peter@eisentraut.org> Author: Peter Eisentraut <peter@eisentraut.org> Discussion: https://postgr.es/m/548600ed-8bbb-4e50-8fc3-65091b122276@eisentraut.org
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/ri_triggers.c | modified | +16 −18 |
Discussion
- Eliminating SPI / SQL from some RI triggers - take 3 69 messages · 2024-12-20 → 2026-04-22