isage / lua-resty-moongoo

MongoDB library for OpenResty
Do What The F*ck You Want To Public License
117 stars 33 forks source link

aggregate cursor loses _db reference #9

Closed develephant closed 7 years ago

develephant commented 7 years ago

Hi,

While testing the aggregate method with a cursor return, an error is thrown on any of the cursor methods. For example: curs:all() or curs:count()

attempt to index field '_db' (a nil value)

The other two varieties of the aggregate method work fine (using explain or $out).

-dev

isage commented 7 years ago

Can you at least provide a filename and line number of an error?

develephant commented 7 years ago

My apologies for not responding sooner. For whatever reason, I didn't get an email for your response.

Thank you for the fix. It is very much appreciated. 👍

-dev