是否可以在 DocumentDB 中搜索存储的 \u000(空字符)数据?
Is it possible to search for stored \u000 (null character) data in DocumentDB?
我在 DocumentDB 中存储了以下数据:
{
"DocumentDbTest_AllFieldTypes": {
"@numeric": "-978623478.23434",
"@string": "test\u0000",
"@boolset": "test|test1",
"@date": "2010/12/24",
"@datetime": "2010/12/24 09:12:34",
"@time": "09:12:34",
"@richtext": "<html onload='alert(3)'>test</html>",
"@version": "2015-08-27T13:17:30:975.230",
"typename": "DocumentDbTest_AllFieldTypes",
}
"id": "56177058-eb54-4b4d-a4ee-45b9603d4c2c"
}
但是当我搜索它时,我没有取回数据。
SELECT * FROM root.DocumentDbTest_AllFieldTypes c
WHERE c["@string"] = "test\u0000"
有谁知道如何在DocumentDB中搜索\u000(空字符)数据或类似数据?
这已被确认为限制。该代码假定以 null 结尾的字符串,因此会将“test\u0000”视为与“test”相同。简而言之,\u0000 目前不是查询中支持的字符串字符。
我们将努力解决未来的问题。
我在 DocumentDB 中存储了以下数据:
{
"DocumentDbTest_AllFieldTypes": {
"@numeric": "-978623478.23434",
"@string": "test\u0000",
"@boolset": "test|test1",
"@date": "2010/12/24",
"@datetime": "2010/12/24 09:12:34",
"@time": "09:12:34",
"@richtext": "<html onload='alert(3)'>test</html>",
"@version": "2015-08-27T13:17:30:975.230",
"typename": "DocumentDbTest_AllFieldTypes",
}
"id": "56177058-eb54-4b4d-a4ee-45b9603d4c2c"
}
但是当我搜索它时,我没有取回数据。
SELECT * FROM root.DocumentDbTest_AllFieldTypes c
WHERE c["@string"] = "test\u0000"
有谁知道如何在DocumentDB中搜索\u000(空字符)数据或类似数据?
这已被确认为限制。该代码假定以 null 结尾的字符串,因此会将“test\u0000”视为与“test”相同。简而言之,\u0000 目前不是查询中支持的字符串字符。
我们将努力解决未来的问题。