兼容性判定
公开资料依据 · 建议 PoC 复核支持度none
严重度minor
置信度medium
依据规则ora.type.binary_float
怎么改
BINARY_FLOAT -> REAL
判定说明
5.0 类型文档未承诺 BINARY_FLOAT 别名;特殊值、精度和驱动映射建议 PoC 复核
库侧 / 应用侧路径
库侧改造
可行:改目标单精度浮点类型并核对 NaN/Infinity 语义
应用侧改造
可行:核对驱动 float 映射与比较容差
推荐路线:db_side。验证建议:精度、溢出、NaN 与排序边界双库比对
规则样例
CREATE TABLE t (score BINARY_FLOAT)
SELECT CAST(v AS BINARY_FLOAT) FROM t
DECLARE v BINARY_FLOAT; BEGIN v := 1; END;
参考来源
- 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://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/Data-Types.html
相关改造点
- 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 模式 怎么改