Skip to content

Commit 80aa111

Browse files
committed
PYTHON-1071 - Use command reported namespace for getMore
1 parent 36817ac commit 80aa111

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pymongo/command_cursor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,10 @@ def _refresh(self):
182182
return len(self.__data)
183183

184184
if self.__id: # Get More
185+
dbname, collname = self.__ns.split('.', 1)
185186
self.__send_message(
186-
_GetMore(self.__collection.database.name,
187-
self.__collection.name,
187+
_GetMore(dbname,
188+
collname,
188189
self.__batch_size,
189190
self.__id,
190191
self.__collection.codec_options))

0 commit comments

Comments
 (0)