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

Change in behaviour of MinKey/MaxKey

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.5.2
    • Component/s: Querying
    • Environment:
    • Minor Change
    • ALL
    • Hide

      2.4.5

      > db.q.drop();
      true
      > db.q.insert({a:1});
      > db.q.find( { "a.b.c" : MinKey } )
      { "_id" : ObjectId("5269a584d627d2d0a303d37c"), "a" : 1 }
      

      2.5.4-pre

      > db.q.drop();
      true
      > db.q.insert({a:1});
      > db.q.find( { "a.b.c" : MinKey } )
      
      Show
      2.4.5 > db.q.drop(); true > db.q.insert({a:1}); > db.q.find( { "a.b.c" : MinKey } ) { "_id" : ObjectId( "5269a584d627d2d0a303d37c" ), "a" : 1 } 2.5.4-pre > db.q.drop(); true > db.q.insert({a:1}); > db.q.find( { "a.b.c" : MinKey } )

      Problem:
      MinKey appears to behave differently in 2.4.5 and 2.5.4-pre

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            alvin Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: