fix: add GUC_DISALLOW_IN_DB_ROLE_SETTING to ivorysql.enable_case_switch - #1467
fix: add GUC_DISALLOW_IN_DB_ROLE_SETTING to ivorysql.enable_case_switch#1467btlqql wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe ChangesGUC protection
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The ivorysql.enable_case_switch parameter controls case conversion behavior and should not be settable via ALTER DATABASE ... SET or ALTER ROLE ... SET, consistent with its existing GUC_DISALLOW_IN_FILE restriction. Without this flag, per-database or per-role overrides can silently break Oracle-compatible identifier resolution for other sessions sharing the same database. Add GUC_DISALLOW_IN_DB_ROLE_SETTING to both ivy_guc.c and guc_parameters.dat. Fixes IvorySQL#1449 Signed-off-by: btlqql <2977859784@qq.com>
356dd5a to
eb2f079
Compare
|
Thank you for your contribution, but this issue has already been claimed by someone else and is in the process of being fixed. Before submitting a PR, please claim the issue first and confirm that it hasn't already been claimed by someone else. For more information, please refer to the community contribution guidelines. |
痛点
ivorysql.enable_case_switch 控制 Oracle 兼容模式下的标识符大小写转换行为。该参数已有 GUC_DISALLOW_IN_FILE 限制,但缺少 GUC_DISALLOW_IN_DB_ROLE_SETTING,导致可通过 ALTER DATABASE ... SET 或 ALTER ROLE ... SET 设置 per-database/per-role 覆盖值,影响共享同一数据库的其他会话的标识符解析。
Fixes #1449
已实现
验证
Signed-off-by: btlqql 2977859784@qq.com
Summary by CodeRabbit
ivorysql.enable_case_switchfrom being overridden via database role configuration. This ensures the setting is applied consistently and can’t be changed indirectly through role-level configuration, improving administrative control and reducing unexpected behavior.