Uploaded image for project: 'Perl Driver'
  1. Perl Driver
  2. PERL-168

Driver passes perl regex flags unknown to the db

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.46.1
    • Component/s: Perl driver
    • Labels:
      None
    • Operating System:
      ALL
    • # Replies:
      10
    • Last comment by Customer:
      true

      Description

      If you pass a regex like qr/blah/ux, the db logs

      Wed May 23 14:50:16 warning: unknown regex flag:u
      Wed May 23 14:50:16 warning: unknown regex flag:x

      on every query. I am guessing the regex should get recompiled or stripped of the extended PCRE flags when converted into internal mongo format.

        Activity

        Hide
        mike.friedman@10gen.com Mike Friedman (Inactive) added a comment -

        Fix can go out in next CPAN release.

        Show
        mike.friedman@10gen.com Mike Friedman (Inactive) added a comment - Fix can go out in next CPAN release.
        Hide
        parkan Arkadiy Kukarkin added a comment -

        Is it possible for the warning to be a warnif with a useful category so it can be suppressed with a "no warnings qw(...)"?

        Show
        parkan Arkadiy Kukarkin added a comment - Is it possible for the warning to be a warnif with a useful category so it can be suppressed with a "no warnings qw(...)"?
        Hide
        mike.friedman@10gen.com Mike Friedman (Inactive) added a comment -

        Sure. The warning is generated from the C code as I recall so it might take some doing. Can you do me a favor and open a new ticket for this request?

        Show
        mike.friedman@10gen.com Mike Friedman (Inactive) added a comment - Sure. The warning is generated from the C code as I recall so it might take some doing. Can you do me a favor and open a new ticket for this request?
        Hide
        parkan Arkadiy Kukarkin added a comment -

        Sounds good, reported here: https://jira.mongodb.org/browse/PERL-203

        Show
        parkan Arkadiy Kukarkin added a comment - Sounds good, reported here: https://jira.mongodb.org/browse/PERL-203
        Hide
        david.golden David Golden added a comment -

        Version 0.704.0.0 released to CPAN; closing all issues marked resolved.

        Show
        david.golden David Golden added a comment - Version 0.704.0.0 released to CPAN; closing all issues marked resolved.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since reply:
              1 year, 13 weeks, 4 days ago
              Date of 1st Reply: