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
Attachments
For Gerrit Dashboard: MB-46420 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
155735,2 | MB-46420 Allow empty quoted identifier | master | query | Status: MERGED | +2 | +1 |
155737,3 | MB-46420 Revise message so it is obvious when an empty bucket name is being reported. | master | go-couchbase | Status: MERGED | +2 | +1 |