Olivine-Labs / resty-mongol

Lua MongoDB driver
MIT License
46 stars 23 forks source link

find() returns metatable. getmore() trying to concatenate it in string #12

Open alex-roman opened 8 years ago

alex-roman commented 8 years ago

res = collection:getmore(collection:find({name="a"}))

lua entry thread aborted: runtime error: /usr/local/share/lua/5.1/resty-mongol/colmt.lua:293: attempt to concatenate local 'cursorID' (a table value)

Lua 5.1.5, Ubuntu 16.04, installed via luarocks.