Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4936

Correctly handle $options when $regex is a regular expression

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Query

      When $regex is given a regular expression, and $options are given, we run into an issue because our BSON regular expressions always have the m flag set and the server does not allow flags to be given in both the regexp argument to $regex and $options.

      As part of this ticket we may need to redesign how bson regular expressions handle their option arguments, which could go into bson 5 or 6.

            Assignee:
            Unassigned Unassigned
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: