Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15403

$min and $max equal errors in 2.6 but not in 2.4

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 2.6.4, 2.7.6
    • 2.6.6, 2.7.8
    • Querying
    • ALL
    • Hide

      var t = db.sameminmax;
      t.drop();
       
      t.ensureIndex({a:1});
      assert.throws(function() {t.find().min({a:1}).max({a:1}).toArray()});

      Show
      var t = db.sameminmax; t.drop();   t.ensureIndex({a:1}); assert.throws(function() {t.find().min({a:1}).max({a:1}).toArray()});
    • Query 2.7.8

    Description

      Using the same value for min and max will throw an error in 2.6 while in 2.4 it would succeed but never return any documents.

      Attachments

        Activity

          People

            david.storch@mongodb.com David Storch
            andrew.emil@10gen.com Andrew Emil (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: