mongodb/mongo — pull request #604 by dstorch (2014-01-08 19:40:18+00:00)
Title: SERVER-10026 check for comparison match expressions with regex during pa...

...rsing

While parsing a MatchExpression, reject expressions like {a: {$gt: /regex/}} and
{b: {$ne: /regex/}}. This used to be done in CanonicalQuery.

Also fixes a query_migration regression in which $ne with a regex was allowed.