Skip to content

Keep the quoting and span of a function argument name - #2447

Merged
iffyio merged 1 commit into
apache:mainfrom
LucaCappelletti94:function-arg-name-quoting
Aug 24, 2026
Merged

Keep the quoting and span of a function argument name#2447
iffyio merged 1 commit into
apache:mainfrom
LucaCappelletti94:function-arg-name-quoting

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

CREATE FUNCTION f("Role" TEXT) parsed the argument name into an Ident whose value still carried the quote characters, with quote_style: None. "we""ird" came back as "we"ird".

Both argument readers rebuilt the name from the token's text with Ident::new(token.to_string()). They now use word.into_ident(token.span), like parse_identifier does, which keeps the quote style and the span.

@iffyio iffyio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @LucaCappelletti94!

@iffyio
iffyio added this pull request to the merge queue Aug 24, 2026
Merged via the queue into apache:main with commit 2f1c486 Aug 24, 2026
10 checks passed
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.

2 participants