By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| Variable_name | Value |
|---|---|
| character_set_client | utf8mb4 |
| character_set_connection | utf8mb4 |
| character_set_database | utf8mb4 |
| character_set_filesystem | binary |
| character_set_results | utf8mb4 |
| character_set_server | utf8mb4 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
| VERSION() |
|---|
| 10.5.17-MariaDB-1:10.5.17+maria~deb11 |
Records: 2 Duplicates: 0 Warnings: 0
| JSON_ARRAYAGG(JSON_ARRAY(txtField)) |
|---|
| [["abc😁"],["😁def"]] |
| JSON_ARRAYAGG(JSON_ARRAY(txtField, bitField)) |
|---|
| [["abc\uD83DDE01", ,["\uD83DDE01def", ] |
| JSON_ARRAYAGG(JSON_ARRAY(txtField, CONVERT(bitField USING UTF8MB4))) |
|---|
| [["abc😁", "\u0000"],["😁def", "\u0001"]] |