{
  "schema": 1,
  "sqlstate": "22P05",
  "condition_name": "untranslatable_character",
  "sources": [
    {
      "id": "src.errcodes.18.6",
      "kind": "upstream_source",
      "source_role": "condition_definition",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/errcodes.txt",
      "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L209",
      "lines": "209"
    },
    {
      "id": "src.path.report",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/mb/mbutils.c",
      "sha256": "2c034d792a3fbc402d673d6e08bd6a2198651bfd3c057176d4098f7e4a215dfb",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/mb/mbutils.c#L1862",
      "lines": "1862-1902"
    },
    {
      "id": "src.path.convert",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/mb/conv.c",
      "sha256": "75d962d1178bbe5dd7781b6b65b1c1135a391ece21042b249876560103933e27",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/mb/conv.c#L674",
      "lines": "674-684"
    }
  ],
  "claims": [
    {
      "id": "identity",
      "statement": "22P05 is untranslatable_character in SQLSTATE Class 22.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Read fixed definition."
    },
    {
      "id": "conversion-path",
      "statement": "report_untranslatable_char computes source multibyte character bytes and reports source and destination encoding names when conversion has no equivalent destination character.",
      "sources": [
        "src.path.report"
      ],
      "method": "Read the complete reporting function."
    },
    {
      "id": "invalid-source-boundary",
      "statement": "The conversion loop calls report_untranslatable_char for a valid source character with no destination mapping, while malformed remaining UTF-8 bytes fall through to report_invalid_encoding and 22021.",
      "sources": [
        "src.path.convert",
        "src.path.report"
      ],
      "method": "Read the conversion failure and invalid-input branches.",
      "limits": "The cited loop is representative; other conversion procedures call the same reporting helper."
    },
    {
      "id": "history",
      "statement": "The locked catalogue records 22P05 from 7.4; that boundary does not prove exact implementation introduction.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Use catalogue boundary."
    }
  ],
  "messages": [
    {
      "id": "message.convert",
      "sqlstate": "22P05",
      "primary_template": "character with byte sequence %s in encoding \"%s\" has no equivalent in encoding \"%s\"",
      "severity_source": "ERROR",
      "sources": [
        "src.path.report"
      ]
    }
  ],
  "usage_evidence": [
    {
      "scope": "definition",
      "status": "definition_only",
      "evidence_ids": [
        "identity"
      ]
    },
    {
      "scope": "fixed-source-path",
      "status": "source_path_confirmed",
      "evidence_ids": [
        "conversion-path",
        "invalid-source-boundary"
      ]
    },
    {
      "scope": "history",
      "status": "unknown",
      "evidence_ids": [
        "history"
      ]
    },
    {
      "scope": "natural-runtime",
      "status": "unknown",
      "evidence_ids": [
        "conversion-path",
        "invalid-source-boundary"
      ]
    }
  ],
  "runtime": []
}
