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

$mod can't use 11 digit as divisor

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Query Execution
    • ALL

    Description

      i have some date like

      /* 1 */
      {
          "_id" : NumberLong("110000000000"),
          "name" : "beijing"
      },
       
      /* 2 */
      {
          "_id" : NumberLong("120000000000"),
          "name" : "tianjing"
      },
       
      /* 3 */
      {
          "_id" : NumberLong("130000000000"),
          "name" : "hebei"
      },
      

      but use 11 digit as divisor return None

      db.collection.find({'_id':{$mod: [10000000000,0]}})

      Document have nothing about this

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            ider ider
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: