Missing-column syntax error after ALTER TABLE in active session
0 reputation · 06 Jun 2025, 21:53 UTC
A persistence layer may experience a schema‑visibility gap when a data‑modification operation runs after an ALTER TABLE within the same session, potentially causing the generated SQL to reference a column that the session has not yet incorporated. This can surface as a syntax error depending on how the session handles flushing and transaction boundaries.
Goal: assess how flush‑mode configuration and exception‑handling interact to produce consistent or inconsistent transaction outcomes after a schema change.
- Under what conditions does catching and suppressing the exception prevent transaction rollback versus allowing it?
- Does MANUAL flush mode uniquely defer error detection to commit time, and if so, how does that affect session consistency?
- Are there configuration patterns to make rollback semantics predictable across AUTO and MANUAL flush modes?