{
    "id": "mysql140-x-optional-reservation-step",
    "title": "Отменить дополнительный комплект, сохранив основной резерв",
    "columns": [
        "Наблюдение",
        "Результат"
    ],
    "rows": [
        [
            "Имя точки отката",
            "main_reserved"
        ],
        [
            "Основной резерв сохранён",
            true
        ],
        [
            "Дополнительный резерв отсутствует",
            true
        ],
        [
            "Остаток ламп",
            0
        ],
        [
            "Остаток комплектующих",
            2
        ],
        [
            "Основной резерв был доступен до commit",
            true
        ]
    ],
    "checks": {
        "named_savepoint_returned": true,
        "partial_rollback_inside": true,
        "main_persisted": true,
        "option_absent": true,
        "inventory_consistent": true,
        "owned_collections_removed": true
    },
    "observations": {
        "savepoint": "main_reserved",
        "rollback_return_type": "mysql_xdevapi\\SqlStatementResult",
        "release_return_type": "mysql_xdevapi\\SqlStatementResult",
        "inside_before_commit": {
            "main": {
                "_id": "RES-MAIN",
                "qty": 1,
                "kind": "reservation",
                "product": "LED-1"
            },
            "option": null,
            "clip": {
                "_id": "CLIP-1",
                "kind": "product",
                "stock": 2
            }
        },
        "main_after_commit": {
            "_id": "RES-MAIN",
            "qty": 1,
            "kind": "reservation",
            "product": "LED-1"
        },
        "option_after_commit": null,
        "lamp_after_commit": {
            "_id": "LED-1",
            "kind": "product",
            "stock": 0
        },
        "clip_after_commit": {
            "_id": "CLIP-1",
            "kind": "product",
            "stock": 2
        }
    },
    "runtime": {
        "php": "8.3.35",
        "extension": "8.0.30",
        "server_version": 80413,
        "schema": "php_manual_x139",
        "host": "127.0.0.1",
        "port": 33140
    },
    "owned_collections": [
        "mysql140_optional_reservation_ste_bc6e6461d183"
    ],
    "removed_collections": [
        "mysql140_optional_reservation_ste_bc6e6461d183"
    ]
}
