orientDB无法从地图中删除值

时间:2015-04-28 08:44:58

标签: sql orientdb

我一直在尝试以下查询:

UPDATE #15:1 REMOVE jsonData.contactName

并收到以下

{
"result": [
    {
        "@type": "d",
        "@version": 0,
        "value": 1
    }
],
"notification": "Query executed in 0.027 sec. Returned 1 record(s)"
}

哪个意思已经成功,

现在当我查询检查我得到的值时:

select * from #15:1

{
"result": [
    {
        "@type": "d",
        "@rid": "#15:1",
        "@version": 6,
        "@class": "TestClass",
        "postUrl": "ABC",
        "postCategory": "#11:497",
        "jsonData": {
            "contactName": "JHON"
        },
        "@fieldTypes": "postCategory=x"
    }
],
"notification": "Query executed in 0.023 sec. Returned 1 record(s)"

}

似乎当我将布尔变量保存到地图中时,布尔值会转换为字符串(false =&gt;“false”)..有没有办法在同一个地图中保存整数,布尔值和字符串?< / p>

1 个答案:

答案 0 :(得分:0)

here(例6)。

UPDATE #15:1 REMOVE jsonData = 'contactName'