兼容性判定
公开资料依据 · 建议 PoC 复核支持度partial
严重度major
置信度low
依据规则ora.type.plsql_boolean
怎么改
BOOLEAN -> boolean(仅过程内部直接映射)
判定说明
BOOLEAN 类型可用,过程内与 SQL/驱动边界仍建议 PoC 复核
库侧 / 应用侧路径
库侧改造
可行:局部变量与函数内部表达式改目标 boolean,接口边界逐项审查
应用侧改造
可行:对不支持布尔绑定的旧调用改 0/1 或字符枚举并统一适配
推荐路线:case_by_case。验证建议:TRUE/FALSE/NULL 三值逻辑与驱动入出参回归
规则样例
参考来源
- https://docs.opengauss.org/en/docs/5.0.0/docs/SQLReference/numeric-types.html
- https://docs.opengauss.org/en/docs/5.0.0/docs/SQLReference/character-types.html
- https://docs.opengauss.org/en/docs/5.0.0/docs/SQLReference/binary-types.html
- https://docs.opengauss.org/en/docs/5.0.0/docs/SQLReference/date-time-types.html
- https://docs.opengauss.org/en/docs/5.0.0/docs/SQLReference/boolean-types.html
- https://docs.opengauss.org/en/docs/5.0.0/docs/SQLReference/create-table.html
- https://github.com/darold/ora2pg/blob/97015451a4d1cfbee888f2e6efe7ff68c239a9b5/doc/Ora2Pg.pod#L2102-L2308
相关改造点
- ORACLE → opengauss 5.0 A 模式 全部改造点
- opengauss 5.0 A 模式 兼容性总览
- ORACLE 迁移国产库总览
- ORACLE ALTER SESSION SET 会话参数 迁移 opengauss 5.0 A 模式 怎么改
- ORACLE 关联数组(INDEX BY 表) 迁移 opengauss 5.0 A 模式 怎么改
- ORACLE AT TIME ZONE 时区表达式 迁移 opengauss 5.0 A 模式 怎么改
- ORACLE 自治事务(PRAGMA AUTONOMOUS_TRANSACTION) 迁移 opengauss 5.0 A 模式 怎么改
- ORACLE 视图 BEQUEATH 子句 迁移 opengauss 5.0 A 模式 怎么改
- ORACLE BFILE 外部文件类型 迁移 opengauss 5.0 A 模式 怎么改