Fix Storable.add_field_expression() when adding a nested String operator equivalent to an existing nested Symbol operator

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 7.2.1
    • Component/s: Query
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Storable.add_field_expression() doesn't correctly handle adding a nested String operator that is equivalent to an existing nested Symbol operator. 

      This is the second piece of a Symbol-String bug manifesting in a chained Query.where().where(). The first piece is addressed in MONGOID-5066 and its accompanying PR.

      The PR is already ready to be reviewed/merged: https://github.com/mongodb/mongoid/pull/4966

              Assignee:
              Oleg Pudeyev (Inactive)
              Reporter:
              Dalton Black
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: