You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add comprehensive tests for preventing user and system variables in column defaults
Tests cover various scenarios for issue #9427:
- User variables (@A) in column DEFAULT expressions
- System variables (@@Version, @@session.sql_mode, etc.) in column DEFAULT expressions
- User and system variables in GENERATED ALWAYS AS expressions
- User and system variables in ALTER TABLE ADD COLUMN defaults
- User and system variables in ALTER TABLE ALTER COLUMN SET DEFAULT
All tests verify that the appropriate ErrColumnDefaultUserVariable error is thrown to match MySQL behavior.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments