1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-11445 JSON_MERGE requires at least two arguments in MySQL, but not in MariaDB.

Create_func_json_merge::create_native fixed.
This commit is contained in:
Alexey Botchkov
2016-12-04 23:57:26 +04:00
parent 12897a5bba
commit c89c514ed3
3 changed files with 5 additions and 1 deletions

View File

@ -197,6 +197,8 @@ t1 CREATE TABLE `t1` (
`json_quote('foo')` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;
select json_merge('string');
ERROR 42000: Incorrect parameter count in the call to native function 'json_merge'
select json_merge('string', 123);
json_merge('string', 123)
["string", 123]