mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-06 11:02:50 -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 Simple locale must use binary comparison and not necessarily case-insensitive comparison. ---- #### AI description (iteration 1) #### PR Classification This pull request is a bug fix to correctly handle the simple collation locale. #### PR Summary The changes ensure that when the collation locale is specified as `simple`, all additional collation options are ignored and binary comparison is applied. - `oss/pg_documentdb_core/src/collation/collation.c`: Added logic to bypass extra collation options when the locale is `simple`. - `oss/pg_documentdb_core/src/query/bson_compare.c`: Updated string comparison to use binary comparison for the `simple` collation. - Test files under `oss/internal/pg_documentdb_distributed/src/test` and `pgmongo/src/test` were updated to add regression checks for simple collation behavior. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->