mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) ### Are you introducing any new config? If yes, do you have tests with and without them being set? ### ChangeLog (Refer [Template](../oss/CHANGELOG.md)) ### Description [Bug-Fix] Update when query spec has regex. While iterating query spec to find out if query has NonId filters, there was a bug due to that we were not using @@ filter in selectCandidate leads to incorrect match. Fixed Now ---- #### AI description (iteration 1) #### PR Classification Bug fix to address issues with query specifications involving regex and right match. #### PR Summary This pull request fixes a bug related to handling regex in query specifications and updates. - Added test cases in `commands_update.out` and `commands_update.sql` to verify regex operator and update functionality. - Modified `bson_query.c` to correctly process filter functions involving regex patterns. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->