{
  "schema": 1,
  "sqlstate": "2200F",
  "condition_name": "zero_length_character_string",
  "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#L204",
      "lines": "204"
    },
    {
      "id": "src.calls.REL_18_6",
      "kind": "local_artifact",
      "source_role": "source_call_scan",
      "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
    },
    {
      "id": "src.path.metaphone",
      "kind": "upstream_source",
      "source_role": "source_guard",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "contrib/fuzzystrmatch/fuzzystrmatch.c",
      "sha256": "bd5b12031fa6ca844b8d4e2c2ced490b7233cc9e35c77ef681cb620c7367a591",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/fuzzystrmatch/fuzzystrmatch.c#L253-L287",
      "lines": "253-287"
    },
    {
      "id": "src.path.tsvector-empty",
      "kind": "upstream_source",
      "source_role": "source_guard",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/adt/tsvector_op.c",
      "sha256": "5ea1783f4023be82a092fbfc66a59d2586cd63352c375e2c8d599bc98bccfe8f",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/tsvector_op.c#L741-L777",
      "lines": "741-777"
    }
  ],
  "claims": [
    {
      "id": "identity",
      "statement": "2200F is zero_length_character_string in SQLSTATE Class 22.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Read fixed definition."
    },
    {
      "id": "mechanism.metaphone",
      "statement": "The contrib fuzzystrmatch metaphone function returns an empty text result at its empty-input early return; after that return, a non-empty input with non-positive requested output length raises 2200F with primary output cannot be empty string.",
      "sources": [
        "src.path.metaphone"
      ],
      "method": "Read the complete metaphone length guards.",
      "limits": "The empty-input early return precedes the reqlen guard; this path does not make every empty SQL string a 2200F error."
    },
    {
      "id": "mechanism.tsvector",
      "statement": "array_to_tsvector rejects an empty lexeme with 2200F and primary lexeme array may not contain empty strings.",
      "sources": [
        "src.path.tsvector-empty"
      ],
      "method": "Read the lexeme validation loop.",
      "limits": "The tsvector path is distinct from metaphone and needs its own input repair."
    },
    {
      "id": "history",
      "statement": "The locked catalogue records 2200F from 7.4 without proving an exact implementation introduction date.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Use catalogue boundary."
    }
  ],
  "messages": [
    {
      "id": "message.metaphone",
      "sqlstate": "2200F",
      "primary_template": "output cannot be empty string",
      "severity_source": "ERROR",
      "sources": [
        "src.path.metaphone"
      ]
    },
    {
      "id": "message.tsvector",
      "sqlstate": "2200F",
      "primary_template": "lexeme array may not contain empty strings",
      "severity_source": "ERROR",
      "sources": [
        "src.path.tsvector-empty"
      ]
    }
  ],
  "usage_evidence": [
    {
      "scope": "definition",
      "status": "definition_only",
      "evidence_ids": [
        "identity"
      ]
    },
    {
      "scope": "fixed-source-path",
      "status": "source_path_confirmed",
      "evidence_ids": [
        "mechanism.metaphone",
        "mechanism.tsvector"
      ]
    },
    {
      "scope": "history",
      "status": "unknown",
      "evidence_ids": [
        "history"
      ]
    },
    {
      "scope": "natural-runtime",
      "status": "unknown",
      "evidence_ids": [
        "mechanism.metaphone"
      ]
    }
  ],
  "runtime": []
}
