{
    "id": "mysql142-x-metadata-text-width",
    "title": "Различить ширину колонки, символы и байты",
    "columns": [
        "Наблюдение",
        "Результат"
    ],
    "rows": [
        [
            "Значение CHAR(5)",
            "AB"
        ],
        [
            "Значение VARCHAR(12)",
            "Кот🙂"
        ],
        [
            "Ширина metadata CHAR(5)",
            20
        ],
        [
            "Ширина metadata VARCHAR(12)",
            48
        ],
        [
            "Символов в текущем label",
            4
        ],
        [
            "Байтов в текущем label",
            10
        ],
        [
            "Набор символов",
            "utf8mb4"
        ],
        [
            "Правило сравнения",
            "utf8mb4_bin"
        ],
        [
            "CHAR: isPadded",
            true
        ],
        [
            "VARCHAR: isPadded",
            false
        ]
    ],
    "checks": {
        "exact_text": true,
        "length_is_metadata": true,
        "value_characters": true,
        "value_bytes": true,
        "character_set": true,
        "collation": true,
        "padding_flags": true,
        "text_type": true,
        "owned_objects_removed": true
    },
    "observations": {
        "metadata": [
            {
                "class": "mysql_xdevapi\\ColumnResult",
                "label": "code",
                "name": "code",
                "table_label": "mysql142_text_width_663b7496145e",
                "table_name": "mysql142_text_width_663b7496145e",
                "schema": "php_manual_x139",
                "type": 21,
                "length": 20,
                "fractional_digits": 0,
                "signed": false,
                "padded": true,
                "charset": "utf8mb4",
                "collation": "utf8mb4_bin"
            },
            {
                "class": "mysql_xdevapi\\ColumnResult",
                "label": "label",
                "name": "label",
                "table_label": "mysql142_text_width_663b7496145e",
                "table_name": "mysql142_text_width_663b7496145e",
                "schema": "php_manual_x139",
                "type": 21,
                "length": 48,
                "fractional_digits": 0,
                "signed": false,
                "padded": false,
                "charset": "utf8mb4",
                "collation": "utf8mb4_bin"
            },
            {
                "class": "mysql_xdevapi\\ColumnResult",
                "label": "characters",
                "name": "",
                "table_label": "",
                "table_name": "",
                "schema": "",
                "type": 19,
                "length": 10,
                "fractional_digits": 0,
                "signed": true,
                "padded": false,
                "charset": null,
                "collation": null
            },
            {
                "class": "mysql_xdevapi\\ColumnResult",
                "label": "bytes",
                "name": "",
                "table_label": "",
                "table_name": "",
                "schema": "",
                "type": 19,
                "length": 10,
                "fractional_digits": 0,
                "signed": true,
                "padded": false,
                "charset": null,
                "collation": null
            }
        ],
        "row": {
            "code": "AB",
            "label": "Кот🙂",
            "characters": 4,
            "bytes": 10
        },
        "declared_characters": {
            "code": 5,
            "label": 12
        },
        "php_bytes": 10,
        "type_constant_bytes": 21
    },
    "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": "mysql142_text_width_663b7496145e"
        }
    ],
    "removed_objects": [
        {
            "type": "TABLE",
            "name": "mysql142_text_width_663b7496145e"
        }
    ]
}
