↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

Wiki / SQLSTATE

22024 — unterminated_c_string

C 风格字符串缺少终止符。

英文手册覆盖始于 PostgreSQL 8.1. 来源历史与运行验证各自保留独立版本边界。

当前阅读 PG 18·选择有来源记录的版本

aliases
未知
class name
Data Exception
condition name
unterminated_c_string
lang
en
sqlstate
22024

版本定义 PG 18

22024

速览 {#at-a-glance}

目录条件名表示 C 风格字符串在所需终止符之前结束。有限的 PostgreSQL 18.6 源码审阅确认了定义,但没有绑定到原生发出该报文的 report group。

含义 {#meaning}

22024 描述接口/解析器层的 C 风格字符串或转义序列缺少终止符,但本次固定源码范围没有确定 PostgreSQL 哪个组件发出它。不能单凭条件名指定 SQL 文本、ECPG、客户端、首要报文或恢复路径。

诊断 {#diagnosis}

结合完整诊断定位实际解析器或接口,检查引号或转义 token 应在哪里结束并保留原始输入。不要把客户端截断或任意 SQL 引号问题直接归入 22024。

处理 {#response}

在所属解析器边界结束或重新编码字符串,并遵循该层的恢复方式。由于有限审阅没有解析出 emitter,本页不推断事务和严重性行为。

版本 {#versions}

锁定目录从 7.4 起记录该条件;当前只确认 PostgreSQL 18.6 的定义和有限源码范围。未声称本页有自然运行观察。

相关 {#related}

22025、22019

来源 {#sources}

固定目录定义记录在结构化证据记录中。有限扫描有意保留原生 emitter、首要文本、严重性和事务行为未知;本页未运行自然案例。

比较版本

SQLSTATE 证据与已记录的运行版本

claims · identity
{
  "claim_id": "identity",
  "limits": "",
  "method": "Read the fixed errcodes row and macro.",
  "position": 0,
  "runtime": [],
  "sources": [
    "src.errcodes.18.6"
  ],
  "statement": "22024 is unterminated_c_string in SQLSTATE Class 22."
}
claims · bounded-scan
{
  "claim_id": "bounded-scan",
  "limits": "A bounded scan does not prove that no extension, client, or historical path exists.",
  "method": "Retain definition evidence without inventing an SQL, ECPG, client, or parser emitter.",
  "position": 1,
  "runtime": [],
  "sources": [
    "src.errcodes.18.6"
  ],
  "statement": "No fixed PostgreSQL 18.6 emitting report group was resolved for 22024 in the bounded source review."
}
claims · history
{
  "claim_id": "history",
  "limits": "",
  "method": "Use catalogue presence and history boundaries.",
  "position": 2,
  "runtime": [],
  "sources": [
    "src.errcodes.18.6"
  ],
  "statement": "The locked catalogue records 22024 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#L203"
}

来源引用

完整定义与证据 JSON

定义来源

center · PostgreSQL 18 · english-manuals:b81ef5f2fa1c3794b21ea51505376515b59ac625626bb23df0e206abe8bc6567

正文语言: zh-Hans · english-manuals:b81ef5f2fa1c3794b21ea51505376515b59ac625626bb23df0e206abe8bc6567