[MDEV-13241] output of function Jbin_Array (CONNECT engine) shows garbage besides results Created: 2017-07-04  Updated: 2022-08-04

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - Connect
Affects Version/s: 10.1, 10.2, 10.3
Fix Version/s: 10.3

Type: Bug Priority: Minor
Reporter: Alice Sherepa Assignee: Olivier Bertrand
Resolution: Unresolved Votes: 0
Labels: None
Environment:

Ubuntu 16.04



 Description   

function Jbin_Array expected to return only "Binary Json array", (https://mariadb.com/kb/en/mariadb/connect-json-table-type/#the-jbin-return-type), but it prints also some garbage and it accumulates

select Jbin_Array('a','b','c');
 
| Binary Json array ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������         И|�     ����        ���������|�  ��|�  
 
 
select Json_Array_Add(Json_Array(56,3.1416,'machin',NULL),'One more');
+----------------------------------------------------------------+
| Json_Array_Add(Json_Array(56,3.1416,'machin',NULL),'One more') |
+----------------------------------------------------------------+
| [56,3.1416,"machin",null,"One more"]                           |
+----------------------------------------------------------------+
 
select Jbin_Array('a','b','c');
| Binary Json array 6, "machin", null] ���(�_��        0�|�  ȿ|�  H�|�  ��_��      ����        `�|�  ��|�   ��������`��  И|�  DV<��  HW<��     �         8       ��_��      ����        Ⱦ|�   �|�   �������H`��  И|�  IV<��          И|�                �_��  ��|�  ��|�    


Generated at Thu Feb 08 08:04:01 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.