22002 — null_value_no_indicator_parameter
返回 NULL 但没有提供指示变量,见于 ECPG。
英文手册覆盖始于 PostgreSQL 8.1. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 18·选择有来源记录的版本
- aliases
- 未知
- class name
- Data Exception
- condition name
- null_value_no_indicator_parameter
- lang
- en
- sqlstate
- 22002
版本定义 PG 18
22002
速览 {#at-a-glance}
22002 是面向 ECPG 指示变量的 null_value_no_indicator_parameter。本次固定源码扫描没有解析出原生报告组。
含义 {#meaning}
22002 是面向 ECPG 指示变量的 null_value_no_indicator_parameter。本次固定源码扫描没有解析出原生报告组。
报文 {#messages}
有界调用扫描没有确认固定 PostgreSQL primary、DETAIL、HINT 或严重性。runtime_verification 为 not_run;若客户端或 ECPG 实现报告该码,应从其自身诊断上下文取得确切报文。
诊断 {#diagnosis}
定位实际选择 22002 的 ECPG、预处理器或客户端路径,检查指示变量契约;不能从服务器列的 NULL 直接推断。
处置 {#response}
在实际 ECPG 接口中补充指示变量处理或修正客户端绑定,并与普通列 NOT NULL 和 PL/pgSQL NULL 条件分开。本页只有源码边界,不推断服务器事务恢复规则。
版本 {#versions}
锁定目录从 7.4 记录该条件,并在列出的正式快照及 19beta3 中出现;固定源码覆盖为 PostgreSQL 18.6。
相关条件 {#related}
来源 {#sources}
详见结构化的证据记录,其中列出固定源码链接与范围限制。
比较版本
SQLSTATE 证据与已记录的运行版本
claims · identity
{
"claim_id": "identity",
"limits": "",
"method": "Read fixed definition.",
"position": 0,
"runtime": [],
"sources": [
"src.errcodes.18.6"
],
"statement": "22002 is null_value_no_indicator_parameter in SQLSTATE Class 22."
}claims · bounded-scan
{
"claim_id": "bounded-scan",
"limits": "This does not exclude an ECPG, extension, wrapper, or other unscanned path.",
"method": "Search fixed call records for the macro.",
"position": 1,
"runtime": [],
"sources": [
"src.calls.REL_18_6"
],
"statement": "The bounded REL_18_6 call archive contains no resolved native report group for 22002."
}claims · meaning-boundary
{
"claim_id": "meaning-boundary",
"limits": "No fixed server message template was confirmed.",
"method": "Compare the condition definition with the bounded emitter scan.",
"position": 2,
"runtime": [],
"sources": [
"src.errcodes.18.6",
"src.calls.REL_18_6"
],
"statement": "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."
}claims · history
{
"claim_id": "history",
"limits": "",
"method": "Use catalogue boundary.",
"position": 3,
"runtime": [],
"sources": [
"src.errcodes.18.6"
],
"statement": "The locked catalogue records 22002 from 7.4 without proving an exact implementation introduction date."
}sources · src.errcodes.18.6
{
"commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
"docs_url": "",
"kind": "upstream_source",
"location": "",
"path": "src/backend/utils/errcodes.txt",
"position": 0,
"sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
"source_id": "src.errcodes.18.6",
"tag": "REL_18_6",
"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L196"
}sources · src.calls.REL_18_6
{
"commit": "",
"docs_url": "",
"kind": "local_artifact",
"location": "",
"path": "raw/calls/REL_18_6.jsonl",
"position": 1,
"sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf",
"source_id": "src.calls.REL_18_6",
"tag": "",
"url": ""
}来源引用
定义来源
center · PostgreSQL 18 · english-manuals:9e0eded318fd83dd2ad3cdeaa7c828eb2675b039d533b565f2e369d212213a3a
正文语言: zh-Hans · english-manuals:9e0eded318fd83dd2ad3cdeaa7c828eb2675b039d533b565f2e369d212213a3a