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()

    XMLWordPrintable

    Details

      Description

      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());
          }

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: