{
    "id": "pdo178-attachment-transfer",
    "title": "Сохранить вложение из потока и получить исходные байты",
    "columns": [
        "Наблюдение",
        "Результат"
    ],
    "rows": [
        [
            "Вложение",
            "document: 22 байт"
        ],
        [
            "Точные байты",
            "4F44424331373800FF0D0A6174746163686D656E740A"
        ],
        [
            "Пустое вложение",
            "empty: SQL NOT NULL, 0 байт"
        ],
        [
            "Отсутствующее вложение",
            "missing: SQL NULL"
        ],
        [
            "Обычный fetch",
            "VARBINARY получен как hex-текст"
        ],
        [
            "Файл",
            "attachment.bin: байты совпали с source.bin"
        ]
    ],
    "checks": {
        "file_exact": true,
        "server_length": true,
        "null_distinct": true,
        "empty_distinct": true,
        "default_hex_observed": true,
        "binary_markers": true,
        "owned_objects_removed": true
    },
    "observations": {
        "states": [
            {
                "id": "1",
                "label": "document",
                "is_missing": "0",
                "byte_length": "22"
            },
            {
                "id": "2",
                "label": "empty",
                "is_missing": "0",
                "byte_length": "0"
            },
            {
                "id": "3",
                "label": "missing",
                "is_missing": "1",
                "byte_length": null
            }
        ],
        "default_representation": "hex_text",
        "default_php_type": "string",
        "bytes": 22,
        "sha256": "959ae3e4ef5e1607b4f2c281bec5f90c58220b180f7d8a4ffa0ab7e88eb4a147",
        "hex": "4F44424331373800FF0D0A6174746163686D656E740A",
        "sql_hex_matches_default": true
    },
    "runtime": {
        "php": "8.5.11",
        "extension": "8.5.11",
        "pdo": "8.5.11",
        "driver": "odbc",
        "server_version": "16.0.1000.6",
        "client": "ODBC-Win32",
        "database": "phpmanual178",
        "transport": "local_named_pipe"
    },
    "owned_objects": [
        {
            "type": "TABLE",
            "name": "pdo178_attachments_5d7f11ab9e04"
        }
    ],
    "removed_objects": [
        {
            "type": "TABLE",
            "name": "pdo178_attachments_5d7f11ab9e04"
        }
    ]
}
