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

Add XOR operator to $bit

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.5.2
    • Component/s: Write Ops
    • Labels:
      None

      Description

      The XOR operator is lacking from the $bit operation. Useful for situations where you want to flip a flag :

      {flag: 1}

      db.col.update(

      {..}

      , {$bit:{flag:

      {xor:1}

      }})

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              acm Andrew Morrow
              Reporter:
              remonvv Remon van Vliet
              Participants:
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: