diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2017-09-12 14:40:18 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2017-09-12 14:40:18 +0400 |
commit | 467acc2119e9408b640915f767515b9242a4d6a3 (patch) | |
tree | e27df35f4f790dbdad2da564ecd75160a48a36da /mysql-test/suite | |
parent | 49878be33107893452155bf1099cd600cc23fb91 (diff) | |
download | mariadb-git-467acc2119e9408b640915f767515b9242a4d6a3.tar.gz |
MDEV-13324 JSON_SET returns NULL instead of object.
Superfluous ',' was added to the JSON_SET result so it became
invalid.
Diffstat (limited to 'mysql-test/suite')
-rw-r--r-- | mysql-test/suite/json/r/json_no_table.result | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mysql-test/suite/json/r/json_no_table.result b/mysql-test/suite/json/r/json_no_table.result index cf4cd5b8af8..034a4e6c0a6 100644 --- a/mysql-test/suite/json/r/json_no_table.result +++ b/mysql-test/suite/json/r/json_no_table.result @@ -2109,10 +2109,9 @@ ERROR 42000: Incorrect parameter count in the call to native function 'json_set' error ER_INVALID_JSON_TEXT_IN_PARAM SELECT JSON_SET('{}', '$.name', JSON_EXTRACT('', '$')); JSON_SET('{}', '$.name', JSON_EXTRACT('', '$')) -NULL +{"name": null} Warnings: Warning 4037 Unexpected end of JSON text in argument 1 to function 'json_extract' -Warning 4038 Syntax error in JSON text in argument 1 to function 'json_set' at position 2 select json_set('[1,2,3]', '$[2]', 4); json_set('[1,2,3]', '$[2]', 4) [1, 2, 4] |