Public bug reported:
localhost> t = {}
---
...
localhost> t[0] = 123
---
...
localhost> t[1] = 456
---
...
localhost> t
---
- - 456 <!-- Where is 123?
...
localhost> yaml.encode(t)
---
- '---
- 456
...
'
localhost> box.cjson.encode(t)
---
- '{"0":123,"1":456}' <!-- Good
...
** Affects: tarantool
Importance: Undecided
Assignee: Dmitry Simonenko (pmwkaa)
Status: New
--
You received this bug notification because you are a member of Tarantool
Development Team, which is subscribed to tarantool.
https://bugs.launchpad.net/bugs/1229721
Title:
Zero index in Lua Tables is ignored by yaml.encode()
Status in Tarantool - an efficient in-memory data store:
New
Bug description:
localhost> t = {}
---
...
localhost> t[0] = 123
---
...
localhost> t[1] = 456
---
...
localhost> t
---
- - 456 <!-- Where is 123?
...
localhost> yaml.encode(t)
---
- '---
- 456
...
'
localhost> box.cjson.encode(t)
---
- '{"0":123,"1":456}' <!-- Good
...
To manage notifications about this bug go to:
https://bugs.launchpad.net/tarantool/+bug/1229721/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help : https://help.launchpad.net/ListHelp