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

mongocxx::options::find::sort doesn't work.

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • 3.1.1
    • Implementation
    • Alpine Linux

    Description

      This code below doesn't work on Linux, but act correctly on macOS.

      auto v = document{} << "_id" << -1 << finalize;
      option.sort(v.view());
      

      and on linux, no error message showed if i write string "-1" instead of -1, and got 'Bad specification error' on macOS.

      auto v = document{} << "_id" << "-1" << finalize;
      option.sort(v.view());
      

      Attachments

        Activity

          People

            david.golden@mongodb.com David Golden
            david23123 David
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: