MariaDB 10.2.4,JSON_REMOVE错误

时间:2017-04-04 06:01:42

标签: json mariadb

在我的MariaDB 10.2.4中,我有记录:

id: 3
name: Jumper
category_id: 3
attributes: {"sensor_type": "CMOS", "processor": "Digic DV I", "scanning_system": "progressive", "mount_type": "PL", "monitor_type": "LCD"}

我收到错误:

Error in query (4038): Syntax error in JSON text in argument 1 to function 'json_remove' at position 86

尝试:

UPDATE `products`
SET `attributes` = JSON_REMOVE(attributes , '$.mount_type')
WHERE`category_id` = 3;

JSON_EXTRACT,JSON_INSERT(和其他人)可以使用"属性"作为第一个论点。 有人可以帮忙吗? ÿ

1 个答案:

答案 0 :(得分:2)

这是this commit范围内MDEV-12262修正的错误。该修复程序已在github上提供,并将包含在MariaDB 10.2.5 -rc中,预计将在未来几天内发布。