Commit Graph
1 Commits
Author SHA1 Message Date
Vinod Sridharan 744b8274ab Merged PR 1443261: [Helio Errors] Generate error codes that are PG compatible
### Does this PR have any customer impact?

### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)
Refactoring

### 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?

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description
Generate error codes that are PG compatible
- Code-gen header file for Mongo Errors
- Generate a text file that can be used for other languages.

- In subsequent changes the existing codebase will be updated to consume these errors.

----
#### AI description  (iteration 1)
#### PR Classification
New feature: Generate error codes that are PostgreSQL (PG) compatible.

#### PR Summary
This pull request introduces a new feature to generate error codes that are compatible with PostgreSQL.
- Added `helio_errors.h` with definitions for various Helio error codes and their corresponding MongoDB error codes.
- Created `mongoerrors.csv` to map error names to MongoDB error codes and their ordinal positions.
2024-09-05 18:18:23 +03:00