Skip to content

test(feed): regression for backtick identifiers containing quotes - #593

Open
TastyHeadphones wants to merge 1 commit into
xo:mainfrom
TastyHeadphones:test/backtick-quote-regression
Open

TastyHeadphones wants to merge 1 commit into
xo:mainfrom
TastyHeadphones:test/backtick-quote-regression

Conversation

@TastyHeadphones

Copy link
Copy Markdown

Summary

Regression coverage for #587.

With MySQL Syntax.Backticks, an identifier such as `we'ird` must be one quoted span. Without backticks, the embedded ' opens a phantom string and later \\ escapes in the next literal are mishandled. The transit grammar already honors Backticks for MySQL via dbmeta; this locks the behavior in feed.

Test plan

  • go test ./feed/ -run TestBacktickIdentifierWithQuoteKeepsStringEscapes -count=1
  • go test ./feed/ -count=1

AI disclosure

Drafted with assistance from Grok; I reviewed and ran the tests locally.

Adds a MySQL Syntax.Backticks case for xo#587: an identifier such
as `we'ird` must not open a phantom string, or the following literal's
\\ escapes collapse before the server sees them. The transit grammar
already honors Backticks; this locks the behavior in.

Disclosure: drafted with Grok assistance; I reviewed and tested the change.
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.

1 participant