bcg/em-mongo

upsert with multiple modifier operations raises

jptix opened this issue · 2 comments

Using several modifier operations in an update causes a crash:

http://gist.github.com/395485

Actually, this applies to any $ modifier operation - doesn't have to be several of them as I initially thought.

bcg commented

Turned off key checking. Added a unit test to make sure '$inc' worked correctly. Not sure your gist is correct through. Pretty sure ruby-mongo-driver doesn't allow :$inc. I turned off this behavior in Rmongo to make it copy with the default ruby driver.