Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## v0.2.3

### Bug Fixes

- **Preserve bracket-quoted T-SQL identifiers containing spaces** ([#101](https://github.com/DataDog/go-sqllexer/pull/101))
Bracket-quoted identifiers whose content contains whitespace (e.g. `[Column With Spaces]`) are no longer de-bracketed during normalization. Stripping the brackets produces bare spaces in identifier position, which breaks query structure. Simple identifiers (`[schema]`, `[table]`) and dot-joined multi-part identifiers (`[schema].[table]`) are unaffected and continue to be de-bracketed as before. A secondary fix suppresses the spurious space that the normalizer was inserting between a dot-suffixed token and the bracket-quoted identifier that follows it (e.g. `t. [Col]` → `t.[Col]`).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Base this release note on the fix commit

If v0.2.3 is tagged on this commit, this entry documents a fix that is not in the tree: #101 is not an ancestor of da7aa04, and running this commit still normalizes SELECT t.[Column With Spaces] ... to SELECT t. Column With Spaces .... That would publish a release note saying bracket-quoted identifiers are preserved while users of the tagged release still receive the broken normalization, so this changelog update needs to land on top of the actual fix before tagging.

Useful? React with 👍 / 👎.


## v0.2.2

### Bug Fixes
Expand Down
Loading