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

Updates with $ sign in key name fail

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 2.0.1, 2.0.4, 2.1.0
    • None
    • Usability, Write Ops
    • Tested on 2.0.1 on 64bit Linux and on 2.0.4 on 32bit Windows XP
    • ALL

    Description

      db.test.insert(

      {"_id": "someid", "attribute": "somevalue"}

      );
      db.test.update(

      {"_id" : "someid"}

      ,{$set: {"pos_list":

      {"PRP$": "PRP$ - Possessive pronoun"}

      }});

      The second line returns the following error:
      not okForStorage

      Interestingly, inserting the same attribute-value pair works:
      db.test.insert(

      {"_id": "someotherid", "PRP$": "PRP$ - Possessive pronoun"}

      );

      Attachments

        Issue Links

          Activity

            People

              scotthernandez Scott Hernandez
              pruhrig Peter Uhrig
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: