{
    "id": "mysql141-x-insert-rows",
    "title": "Сопоставить колонки со значениями и разобрать отказ вставки",
    "columns": [
        "Наблюдение",
        "Результат"
    ],
    "rows": [
        [
            "Строк до execute",
            0
        ],
        [
            "Добавлено строк",
            2
        ],
        [
            "Первое название",
            "Лампа O'Neal"
        ],
        [
            "Пропущенный stock получил DEFAULT",
            0
        ],
        [
            "note первой строки — NULL",
            true
        ],
        [
            "note второй строки — пустая строка",
            true
        ],
        [
            "Повтор UNIQUE sku отклонён",
            true
        ],
        [
            "Неполная строка values отклонена",
            true
        ],
        [
            "Сохранено после отказов",
            2
        ]
    ],
    "checks": {
        "builder_not_executed": true,
        "two_saved": true,
        "quoted_name": true,
        "default_stock": true,
        "null_vs_empty": true,
        "duplicate_refused": true,
        "wrong_arity_refused": true,
        "no_bad_rows": true,
        "owned_objects_removed": true
    },
    "observations": {
        "stored_rows": [
            {
                "sku": "O'NEAL",
                "name": "Лампа O'Neal",
                "stock": 0,
                "note": null
            },
            {
                "sku": "CABLE",
                "name": "Кабель",
                "stock": 0,
                "note": ""
            }
        ],
        "duplicate_exception_chain": [
            {
                "class": "mysql_xdevapi\\Exception",
                "code": 10000,
                "message": "[HY000] Couldn't fetch data"
            },
            {
                "class": "mysql_xdevapi\\Exception",
                "code": 1062,
                "message": "[23000] Duplicate entry 'O'NEAL' for key 'mysql141_insert_rows_a5ad6f4e9e7d.sku'"
            }
        ],
        "wrong_row_length_exception_chain": [
            {
                "class": "mysql_xdevapi\\Exception",
                "code": 10000,
                "message": "[HY000] Couldn't fetch data"
            },
            {
                "class": "mysql_xdevapi\\Exception",
                "code": 5014,
                "message": "[HY000] Wrong number of fields in row being inserted"
            }
        ],
        "receipt_type": "mysql_xdevapi\\Result"
    },
    "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_insert_rows_a5ad6f4e9e7d"
        }
    ],
    "removed_objects": [
        {
            "type": "TABLE",
            "name": "mysql141_insert_rows_a5ad6f4e9e7d"
        }
    ]
}
