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

Handle empty strings in sqlcommenter #3309

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

selcuk
Copy link

@selcuk selcuk commented Feb 28, 2025

Safer check for a trailing semicolon that could handle empty strings as well.

Description

Improved trailing semicolon check that could handle empty strings as well.

Fixes #3308

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Does This PR Require a Core Repo Change?

  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

Safer check for a trailing semicolon that could handle
empty strings as well.
@selcuk selcuk requested a review from a team as a code owner February 28, 2025 05:33
Copy link

linux-foundation-easycla bot commented Feb 28, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link
Contributor

@xrmx xrmx left a comment

Choose a reason for hiding this comment

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

LGTM, Could you please add a test case so we can avoid regressions in the future?

@selcuk
Copy link
Author

selcuk commented Mar 8, 2025

Sure thing, just added one.

Copy link
Contributor

@tammy-baylis-swi tammy-baylis-swi left a comment

Choose a reason for hiding this comment

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

Lgtm too, please resolve the merge conflict.

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.

Traceback in SQL Commenter when an empty string is encountered
3 participants