mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? No ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Refactor ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) No ### Are you introducing any new config? If yes, do you have tests with and without them being set? No ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description Move to helio error codes in pg-helio-core Enforce hygiene in helio core Move to helio errors ---- #### AI description (iteration 1) #### PR Classification Code cleanup #### PR Summary This pull request refactors error handling by replacing Mongo-specific error codes with Helio-specific error codes and updates error messages accordingly. - Added `CheckNoMongoErrorCodes` function in `/scripts/validate_helio_extension_state.sh` to ensure no Mongo-specific error codes are used. - Updated error codes and messages in `oss/pg_helio_core/src/query/bson_compare.c` to use Helio-specific codes. - Modified error handling in `oss/pg_helio_core/src/types/pcre_regex.c` to replace Mongo error codes with Helio error codes. - Replaced Mongo error codes with Helio error codes in `oss/pg_helio_core/src/io/pgbsonsequence.c`. - Updated error codes in `oss/pg_helio_core/src/types/decimal128.c` to use Helio-specific codes.