Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Allow underscores in varbinary literals #24776

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

brunokim
Copy link
Contributor

Description

Allow underscores in addition to whitespace within varbinary literals.

Additional context and related issues

This PR has #24774 as a dependency.

This change was a minor point in the discussion of #23682, but I thought it
would be a good starting point to me as a contributor.

Numeric literals allow underscores for readability, and a developer (like me)
may expect that varbinary literals would use the same pattern. This syntax is more
lenient than the one for numbers, ignoring any number of underscores (or whitespace)
in the string.

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text:

## Section
* Allow underscores in varbinary literals ({23682}`23682`)

Varbinary literals ignore any whitespace within the string to increase
readability. Numeric literals allow underscores as digit separators, and
a developer may expect the same affordance when using varbinary.
@mosabua
Copy link
Member

mosabua commented Jan 23, 2025

Could you also look at #24784 and talk to @martint or maybe @kasiafi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants