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

Another round of lexer fixes #2520

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Another round of lexer fixes #2520

merged 1 commit into from
Oct 25, 2023

Conversation

hgschmie
Copy link
Contributor

This hopefully addresses all the issues raised in #2481, #2499 and finally #2510.

The case of the trailing '-' is not solvable without a trailing
delimiter. There is not enough information to decide whether
:foo-bar is "identifier 'foo-bar'" or "identifier 'foo' minus bar".

This PR drops the '-' again as a valid character in a parameter or
binding (sorry if you added it; but then again this was only added in
3.41.1). The dot (.) is still supported as a valid character in a
binding or parameter name. It always was for the parameters but not
for a binding (this caused the original #2481 issue).

This hopefully addresses all the issues raised in jdbi#2481, jdbi#2499 and finally jdbi#2510.

The case of the trailing '-' is not solvable without a trailing
delimiter. There is not enough information to decide whether
`:foo-bar` is "identifier 'foo-bar'" or "identifier 'foo' minus bar".

This PR drops the '-' again as a valid character in a parameter or
binding (sorry if you added it; but then again this was only added in
3.41.1). The dot (`.`) is still supported as a valid character in a
binding or parameter name. It always was for the parameters but not
for a binding (this caused the original jdbi#2481 issue).
@sonarcloud
Copy link

sonarcloud bot commented Oct 24, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@hgschmie hgschmie merged commit 0ed8cee into jdbi:master Oct 25, 2023
44 checks passed
@hgschmie hgschmie deleted the lexer-fixes branch October 25, 2023 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants