$type value should be signed extended

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Query
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      > db.max.find({_id:{$type:0xff}}) //documented in bsonspec
      error: { "$err" : "type not supported for appendMinElementForType", "code" : 10061 }
      > db.max.find({_id:{$type:-1}})
      { "_id" : { "$MinKey" : true } }
      

            Assignee:
            Backlog - Query Team (Inactive)
            Reporter:
            Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: