MariaDB 10.2.4,JSON_REMOVE 错误

MariaDB 10.2.4, JSON_REMOVE error

在我的 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(和其他)可以将 "attributes" 作为第一个参数。 谁能帮忙? Y

这是 this commit in scope of MDEV-12262 修复的错误。该修复程序已在 github 上可用,并将包含在 MariaDB 10.2.5-rc 中,预计将在未来几天内发布。