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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.1.1
    • Component/s: Implementation
    • Environment:
      Alpine Linux
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

            Assignee:
            David Golden
            Reporter:
            David
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: