Details
-
Bug
-
Resolution: Fixed
-
Major
-
Cheshire-Cat
-
Untriaged
-
1
-
Unknown
Description
insert into default values ("k001", {"":1}); |
|
select * from default USE KEYS "k001"; |
"results": [ |
{
|
"default": { |
"": 1 |
}
|
}
|
]
|
select RAW d.`` from default AS d USE KEYS "k001"; |
"errors": [ |
{
|
"code": 3000, |
"msg": "syntax error - at `" |
}
|
]
|
|
|
Work around in N1QL use as map syntax
|
|
select RAW d.[""] from default AS d USE KEYS "k001"; |
"results": [ |
{
|
"": 1 |
}
|
]
|
|
According to https://www.json.org/json-en.html empty string in field is valid
https://forums.couchbase.com/t/sub-document-operations-with-empty-key-in-path/19540/4