lib/mongo/collection/view/readable.rb in mongo-2.10.2 vs lib/mongo/collection/view/readable.rb in mongo-2.10.3
- old
+ new
@@ -600,18 +600,18 @@
:session => session,
}.merge!(options))
cmd.execute(server).cursor_ids.map do |cursor_id|
result = if server.features.find_command_enabled?
Operation::GetMore.new({
- :selector => {:getMore => cursor_id,
+ :selector => {:getMore => BSON::Int64.new(cursor_id),
:collection => collection.name},
:db_name => database.name,
:session => session,
}).execute(server)
else
Operation::GetMore.new({
:to_return => 0,
- :cursor_id => cursor_id,
+ :cursor_id => BSON::Int64.new(cursor_id),
:db_name => database.name,
:coll_name => collection.name
}).execute(server)
end
Cursor.new(self, result, server, session: session)