兼容性判定
公开资料依据 · 建议 PoC 复核支持度none
严重度major
置信度medium
依据规则ora.func.asciistr
怎么改
自定义受测转换或改应用稳定 Unicode 转义协议
判定说明
core 无 Oracle ASCIISTR 输出契约;unistr 是反向用途,建议 PoC 复核代理对与反斜杠
库侧 / 应用侧路径
库侧改造
可行:自定义函数时明确 UTF-16 代理项与反斜杠格式
应用侧改造
可行:改标准 JSON/Unicode 转义并版本化接口
推荐路线:app_side。验证建议:BMP、emoji 代理对、反斜杠、ASCII 与 NULL 样例对照
规则样例
SELECT ASCIISTR('中文') FROM dual
SELECT ASCIISTR(customer_name) FROM customer
SELECT ASCII('A') FROM dual
参考来源
- https://github.com/darold/ora2pg/blob/97015451a4d1cfbee888f2e6efe7ff68c239a9b5/lib/Ora2Pg/PLSQL.pm#L88-L223
- https://www.postgresql.org/docs/16/functions-string.html
- https://www.postgresql.org/docs/16/datatype.html
- https://www.postgresql.org/docs/16/functions.html
- https://www.postgresql.org/docs/16/sql-commands.html
相关改造点
- ORACLE → postgresql 16 全部改造点
- postgresql 16 兼容性总览
- ORACLE 迁移国产库总览
- ORACLE ADD_MONTHS 函数 迁移 postgresql 16 怎么改
- ORACLE ALTER SESSION SET 会话参数 迁移 postgresql 16 怎么改
- ORACLE ANYDATA 动态类型列 迁移 postgresql 16 怎么改
- ORACLE 关联数组(INDEX BY 表) 迁移 postgresql 16 怎么改
- ORACLE AT TIME ZONE 时区表达式 迁移 postgresql 16 怎么改
- ORACLE AUTHID 执行者/定义者权限模式 迁移 postgresql 16 怎么改