Skip to content

SQLite: Parse hexadecimal integer literals - #3075

Open
LucaCappelletti94 wants to merge 2 commits into
mainfrom
upstream/sqlite-hex-integer-literals
Open

LucaCappelletti94 wants to merge 2 commits into
mainfrom
upstream/sqlite-hex-integer-literals

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

SQLite reads 0x1F and 0X1F as the integer 31, so SELECT a FROM t GROUP BY 0x1 groups by the first column. SQLiteDialect tokenized 0x1F as the blob X'1F' instead and rejected 0X1F with Expected: end of statement, found: X1F.

In #2758 I put hexadecimal, octal and binary integer literals behind one flag, supports_non_decimal_integer_literals, but SQLite only has the hexadecimal prefix, and 0o1 or 0b1 are unrecognized token there. I have now split the flag into supports_hex_integer_literals, supports_octal_integer_literals and supports_binary_integer_literals.

@codecov-commenter

codecov-commenter commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.62%. Comparing base (5dd8f8d) to head (73a2493).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3075   +/-   ##
=======================================
  Coverage   83.61%   83.62%           
=======================================
  Files          42       42           
  Lines       35768    35786   +18     
  Branches    35768    35786   +18     
=======================================
+ Hits        29908    29926   +18     
  Misses       2418     2418           
  Partials     3442     3442           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants