Skip to content

Allow ErrorCode enum names in yamsql error directives#4200

Open
arnaud-lacurie wants to merge 2 commits into
FoundationDB:mainfrom
arnaud-lacurie:yamsql-error-enum-names
Open

Allow ErrorCode enum names in yamsql error directives#4200
arnaud-lacurie wants to merge 2 commits into
FoundationDB:mainfrom
arnaud-lacurie:yamsql-error-enum-names

Conversation

@arnaud-lacurie
Copy link
Copy Markdown
Collaborator

Yamsql error: directives now accept ErrorCode enum names (e.g. SYNTAX_ERROR) in addition to raw SQLSTATE codes. Failure messages show NAME (code) on both sides. All yamsql files updated; showcasing-tests.yamsql demonstrates both forms.

Yamsql test files can now use human-readable ErrorCode enum names
(e.g. SYNTAX_ERROR) in addition to raw SQLSTATE codes (e.g. 42601).
The parser resolves enum names to their 5-char code at parse time;
failure messages show both name and code on each side.

All existing yamsql error directives updated to use enum names.
@arnaud-lacurie arnaud-lacurie added the testing improvement Change that improves our testing label May 23, 2026
@arnaud-lacurie arnaud-lacurie marked this pull request as ready for review May 24, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing improvement Change that improves our testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant