{
    "id": "mysql141-x-row-result-cursor",
    "title": "Прочитать первую строку и остаток результата без потерь",
    "columns": [
        "Наблюдение",
        "Результат"
    ],
    "rows": [
        [
            "Заголовки результата",
            "product_id, article, cost_cents"
        ],
        [
            "Количество столбцов",
            3
        ],
        [
            "Первая строка",
            "LED"
        ],
        [
            "fetchAll вернул весь буфер",
            "LED, CABLE, STRIP"
        ],
        [
            "Повтор fetchAll дал тот же буфер",
            true
        ],
        [
            "Оставшиеся строки через fetchOne",
            "CABLE, STRIP"
        ],
        [
            "fetchOne после конца — null",
            true
        ],
        [
            "Пустой SELECT: строк",
            0
        ],
        [
            "Пустой SELECT: столбцов",
            2
        ],
        [
            "Пустой SELECT: имена колонок",
            "product_id, article"
        ]
    ],
    "checks": {
        "aliases": true,
        "column_count": true,
        "first_row": true,
        "buffer_all_rows": true,
        "remaining_rows": true,
        "cursor_exhausted": true,
        "empty_rows": true,
        "metadata_without_rows": true,
        "owned_objects_removed": true
    },
    "observations": {
        "result_type": "mysql_xdevapi\\RowResult",
        "first": {
            "product_id": 1,
            "article": "LED",
            "cost_cents": 120000
        },
        "remaining_via_fetch_one": [
            {
                "product_id": 2,
                "article": "CABLE",
                "cost_cents": 30000
            },
            {
                "product_id": 3,
                "article": "STRIP",
                "cost_cents": 50000
            }
        ],
        "buffer": [
            {
                "product_id": 1,
                "article": "LED",
                "cost_cents": 120000
            },
            {
                "product_id": 2,
                "article": "CABLE",
                "cost_cents": 30000
            },
            {
                "product_id": 3,
                "article": "STRIP",
                "cost_cents": 50000
            }
        ],
        "buffer_again": [
            {
                "product_id": 1,
                "article": "LED",
                "cost_cents": 120000
            },
            {
                "product_id": 2,
                "article": "CABLE",
                "cost_cents": 30000
            },
            {
                "product_id": 3,
                "article": "STRIP",
                "cost_cents": 50000
            }
        ],
        "after_end": null,
        "empty_column_names": [
            "product_id",
            "article"
        ],
        "empty_rows": []
    },
    "runtime": {
        "php": "8.3.35",
        "extension": "8.0.30",
        "server_version": 80413,
        "schema": "php_manual_x139",
        "host": "127.0.0.1",
        "port": 33140
    },
    "owned_objects": [
        {
            "type": "TABLE",
            "name": "mysql141_row_cursor_9b34d4103bb5"
        }
    ],
    "removed_objects": [
        {
            "type": "TABLE",
            "name": "mysql141_row_cursor_9b34d4103bb5"
        }
    ]
}
