mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 11:33:09 +00:00
bson dictionary's key can't be number
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user