Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-449

Aggregate cursor with no results against MongoDB 2.2/2.4 responds true to more()

      This fails on the current driver running against MongoDB < 2.6

          // Start with empty collection
          TEST_F(DBClientTest, AggregateNoResults) {
              std::auto_ptr<DBClientCursor> cursor = c.aggregate(TEST_NS, BSONObj());
              ASSERT_TRUE(cursor.get());
              ASSERT_FALSE(cursor->more());
          }
      

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            tyler@10gen.com Tyler Brock
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: