选择 打开 改范围 完整检索页

pgsql.cc 提供对 postgresql.org 官网内容的中文翻译,由 Pigsty 团队维护。

百科 / 错误代码 / Class 22 数据异常

22002 null_value_no_indicator_parameter

ERROR 仅定义 参考 未实测

类别
Class 22 数据异常
严重等级
ERROR
条件名
null_value_no_indicator_parameter
宏名称
ERRCODE_NULL_VALUE_NO_INDICATOR_PARAMETER
启用版本
7.4
状态
活跃

版本覆盖

速览

22002 是面向 ECPG 指示变量的 null_value_no_indicator_parameter。本次固定源码扫描没有解析出原生报告组。

含义

22002 是面向 ECPG 指示变量的 null_value_no_indicator_parameter。本次固定源码扫描没有解析出原生报告组。

报文

有界调用扫描没有确认固定 PostgreSQL primary、DETAIL、HINT 或严重性。runtime_verificationnot_run;若客户端或 ECPG 实现报告该码,应从其自身诊断上下文取得确切报文。

诊断

定位实际选择 22002 的 ECPG、预处理器或客户端路径,检查指示变量契约;不能从服务器列的 NULL 直接推断。

处置

在实际 ECPG 接口中补充指示变量处理或修正客户端绑定,并与普通列 NOT NULL 和 PL/pgSQL NULL 条件分开。本页只有源码边界,不推断服务器事务恢复规则。

版本

锁定目录从 7.4 记录该条件,并在列出的正式快照及 19beta3 中出现;固定源码覆盖为 PostgreSQL 18.6。

来源

证据

断言

每条断言都写明了是怎么核实的,以及它不覆盖什么。这一层是核验时留下的原始英文记录,照原样呈现,未经翻译。

  • 22002 is null_value_no_indicator_parameter in SQLSTATE Class 22.

    核实方式Read fixed definition.

    来源src/backend/utils/errcodes.txt

  • The bounded REL_18_6 call archive contains no resolved native report group for 22002.

    核实方式Search fixed call records for the macro.

    不覆盖This does not exclude an ECPG, extension, wrapper, or other unscanned path.

    来源raw/calls/REL_18_6.jsonl

  • The condition name describes a NULL indicator-variable contract associated with embedded SQL/client handling; it is not evidence that a server column NULL alone should produce 22002.

    核实方式Compare the condition definition with the bounded emitter scan.

    不覆盖No fixed server message template was confirmed.

    来源src/backend/utils/errcodes.txt · raw/calls/REL_18_6.jsonl

  • The locked catalogue records 22002 from 7.4 without proving an exact implementation introduction date.

    核实方式Use catalogue boundary.

    来源src/backend/utils/errcodes.txt

同类错误代码

Class 22 数据异常 下的其他成员。