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

Cannot index Decimal inside a subdoc

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.3.11
    • 3.3.8
    • Index Maintenance
    • None
    • Fully Compatible
    • ALL
    • Hide

      db.user.ensureIndex({
          num: 1,
          x: 1
      });
      db.user.insert({
          x: [{a: NumberDecimal(Infinity)}]
      });
      

      Show
      db.user.ensureIndex({ num: 1, x: 1 }); db.user.insert({ x: [{a: NumberDecimal(Infinity)}] });
    • 0

    Description

      bsonTypeToGenericKeyStringType is missing a case for NumberDecimal.

      Attachments

        Activity

          People

            geert.bosch@mongodb.com Geert Bosch
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: