bson dictionary's key can't be number

This commit is contained in:
Cloud Wu
2017-07-04 21:32:04 +08:00
parent 86883c7d9a
commit d6eb49e4eb
2 changed files with 9 additions and 12 deletions

View File

@@ -22,9 +22,9 @@ end
local obj_a = {
__data = {
[1] = 2,
[3] = 4,
[5] = 6,
["1"] = 2,
["3"] = 4,
["5"] = 6,
}
}
@@ -38,9 +38,9 @@ setmetatable(
local obj_b = {
__data = {
[7] = 8,
[9] = 10,
[11] = obj_a,
["7"] = 8,
["9"] = 10,
["11"] = obj_a,
}
}