Ответы получены от MySQL через X Protocol. Созданные программой учебные объекты после чтения удалены.
Строки и дополнительные наблюдения
{
"sent": true,
"sent_type": "bool",
"headings": [
"Позиции счёта",
"Итого",
"Завершение CALL"
],
"parts": [
{
"type": "mysql_xdevapi\\SqlStatementResult",
"has_data": true,
"columns": [
"title",
"qty",
"unit_cents"
],
"rows": [
{
"title": "Лампа",
"qty": 2,
"unit_cents": 1200
},
{
"title": "Кабель",
"qty": 1,
"unit_cents": 800
}
],
"more": true
},
{
"type": "mysql_xdevapi\\SqlStatementResult",
"has_data": true,
"columns": [
"total_cents"
],
"rows": [
{
"total_cents": "3200."
}
],
"more": true
},
{
"type": "mysql_xdevapi\\SqlStatementResult",
"has_data": false,
"columns": [],
"rows": [],
"more": false
}
],
"after": {
"ready": 1
},
"total_raw": "3200.",
"total_php_type": "string"
}
Полный JSON результата, включая реальные идентификаторы, сохранён рядом в result.json.