fix(client): preserve bit and hex literals in SQL formatter#34
Open
LordofAvernus wants to merge 1 commit into
Open
fix(client): preserve bit and hex literals in SQL formatter#34LordofAvernus wants to merge 1 commit into
LordofAvernus wants to merge 1 commit into
Conversation
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@oceanbase-odc/ob-parser-js@3.0.5so SQL formatter keeps MySQL/OB bit/hex quoted literals (b'0',x'1A') intact instead of splitting them intob '0'.BIT_HEX_LITERAL_REGEXandgetBitHexLiteralToken()inTokenizer(lib + esm).Fixes actiontech/dms-ee#892
Problem
ODC「格式化」将
b'0'输出为b '0',执行时报ErrorCode=1054 Unknown column 'b'.Test plan
node scripts/verify_odc_format_bit_literal.js— 3/3 PASSscripts/e2e_odc_format_bit_literal_146_ui.mjsold/new PASSselect b 'alias' from t不误合并Related
docs/delivery/odc-format-bit-literal-20260618/