{
    "id": "oci184-attachment-states",
    "title": "Отличить отсутствующее вложение от пустого и заполненного файла",
    "columns": [
        "Наблюдение",
        "Результат"
    ],
    "rows": [
        [
            "Не прикреплён",
            "SQL NULL → null; дескриптора и размера нет"
        ],
        [
            "Пустой файл",
            "EMPTY_BLOB → OCILob; size() = 0, load() = пустая строка"
        ],
        [
            "Квитанция",
            "BLOB → 7 байт: OK-184 и перевод строки"
        ],
        [
            "Отображение",
            "missing \/ empty \/ present остаются тремя разными состояниями"
        ],
        [
            "Файл",
            "attachment-states.json: три строки со значением и размером"
        ]
    ],
    "checks": {
        "three_distinct_rows": true,
        "sql_null_preserved": true,
        "empty_lob_is_zero_not_false": true,
        "receipt_bytes_exact": true,
        "only_nonnull_values_are_lobs": true,
        "fetch_finished_normally": true,
        "three_descriptors_freed": true,
        "json_written": true,
        "owned_objects_removed": true
    },
    "observations": {
        "states": [
            {
                "id": 1,
                "label": "Не прикреплён",
                "state": "missing",
                "bytes": null,
                "content": null
            },
            {
                "id": 2,
                "label": "Пустой файл",
                "state": "empty",
                "bytes": 0,
                "content": ""
            },
            {
                "id": 3,
                "label": "Квитанция",
                "state": "present",
                "bytes": 7,
                "content": "OK-184\n"
            }
        ],
        "null_key_present": true,
        "returned_descriptors": 2,
        "released_descriptors": 3,
        "fetch_error": false
    },
    "runtime": {
        "php": "8.5.11",
        "extension": "3.4.1",
        "driver": "oci8",
        "client": "23.26.4.0.0",
        "server_version": "Oracle AI Database 26ai Free Release 23.26.3.0.0 - Develop, Learn, and Run for Free",
        "database": "FREEPDB1",
        "transport": "loopback_tcp"
    },
    "owned_objects": [
        {
            "type": "TABLE",
            "name": "P184_STATES_061C1D5C2AE6"
        }
    ],
    "removed_objects": [
        {
            "type": "TABLE",
            "name": "P184_STATES_061C1D5C2AE6"
        }
    ]
}
