{
    "id": "pdo178-import-transaction",
    "title": "Сохранить заказ и позиции целиком, затем выгрузить квитанцию",
    "columns": [
        "Наблюдение",
        "Результат"
    ],
    "rows": [
        [
            "После ошибочного импорта",
            "0 заказов; 0 позиций"
        ],
        [
            "Причина отказа",
            "CHECK: количество должно быть больше 0"
        ],
        [
            "Сохранённый заказ",
            "101 \/ WEB-178"
        ],
        [
            "Позиции",
            "CAB: 2; CLP: 3"
        ],
        [
            "Транзакция после подтверждения",
            "завершена"
        ],
        [
            "Файл",
            "import-receipt.csv"
        ]
    ],
    "checks": {
        "first_constraint_failed": true,
        "transaction_still_active_at_failure": true,
        "rollback_removed_header": true,
        "rollback_removed_first_line": true,
        "rollback_closed_transaction": true,
        "committed_join_matches": true,
        "commit_closed_transaction": true,
        "autocommit_preserved": true,
        "csv_saved": true,
        "owned_objects_removed": true
    },
    "observations": {
        "failed_import": {
            "state": "23000",
            "code": 547
        },
        "active_at_failure": true,
        "counts_after_rollback": [
            0,
            0
        ],
        "committed_rows": [
            {
                "id": 101,
                "client_ref": "WEB-178",
                "sku": "CAB",
                "qty": 2
            },
            {
                "id": 101,
                "client_ref": "WEB-178",
                "sku": "CLP",
                "qty": 3
            }
        ],
        "autocommit_before": true,
        "autocommit_after": 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_orders_7e03eac4c9c0"
        },
        {
            "type": "TABLE",
            "name": "pdo178_order_lines_e8d7a09b891a"
        }
    ],
    "removed_objects": [
        {
            "type": "TABLE",
            "name": "pdo178_order_lines_e8d7a09b891a"
        },
        {
            "type": "TABLE",
            "name": "pdo178_orders_7e03eac4c9c0"
        }
    ]
}
