Skip to content

Stop printing a trailing space after PUBLIC in GRANT and REVOKE - #2416

Open
LucaCappelletti94 wants to merge 1 commit into
apache:mainfrom
LucaCappelletti94:grantee-public-no-trailing-space
Open

Stop printing a trailing space after PUBLIC in GRANT and REVOKE#2416
LucaCappelletti94 wants to merge 1 commit into
apache:mainfrom
LucaCappelletti94:grantee-public-no-trailing-space

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

Display for Grantee wrote the grantee type keyword with a trailing space baked in, then appended the name. PUBLIC is the only grantee type the parser ever builds without a name, so for it the space had nothing to follow it and GRANT SELECT ON t TO PUBLIC printed with a trailing space, which does not match the input it was parsed from.

The separator now belongs to the name rather than the keyword, so it is only written when a name follows.

@LucaCappelletti94
LucaCappelletti94 marked this pull request as ready for review July 30, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant