Skip to content

SQLite: Support << and >> bitwise shift operators - #2657

Merged
LucaCappelletti94 merged 2 commits into
mainfrom
sqlite-shift-operators
Oct 24, 2026
Merged

LucaCappelletti94 merged 2 commits into
mainfrom
sqlite-shift-operators

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

SQLite has the bitwise shift operators << and >>, listed in its operator table at the same precedence as & and | (https://www.sqlite.org/lang_expr.html#operators), but SELECT a << 1 FROM t failed to parse with the SQLite dialect (No infix parser for token ShiftLeft).

SQLiteDialect now enables supports_bitwise_shift_operators.

@LucaCappelletti94 LucaCappelletti94 added enhancement New feature or request SQLite labels Oct 17, 2026
@codecov-commenter

codecov-commenter commented Oct 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.84%. Comparing base (8fe5a1a) to head (d7c1202).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2657   +/-   ##
=======================================
  Coverage   81.84%   81.84%           
=======================================
  Files          42       42           
  Lines       34667    34670    +3     
  Branches    34667    34670    +3     
=======================================
+ Hits        28373    28376    +3     
  Misses       2753     2753           
  Partials     3541     3541           

☔ 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.

@LucaCappelletti94
LucaCappelletti94 marked this pull request as draft October 18, 2026 14:12
@LucaCappelletti94
LucaCappelletti94 changed the base branch from main to upstream/sqlite-bitwise-precedence October 18, 2026 16:21
@LucaCappelletti94
LucaCappelletti94 marked this pull request as ready for review October 18, 2026 16:52
@LucaCappelletti94
LucaCappelletti94 added this pull request to stack #2684 October 18, 2026 17:01
Base automatically changed from upstream/sqlite-bitwise-precedence to main October 20, 2026 23:21

@s5dsn-eqee s5dsn-eqee left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@LucaCappelletti94
LucaCappelletti94 force-pushed the sqlite-shift-operators branch 4 times, most recently from 1109aaf to 8da8cb5 Compare October 24, 2026 07:15
@LucaCappelletti94

Copy link
Copy Markdown
Contributor Author

Thanks @s5dsn-eqee for the review, will merge soon.

cc @alamb

@LucaCappelletti94
LucaCappelletti94 added this pull request to the merge queue Oct 24, 2026
Merged via the queue into main with commit 7ab6bfa Oct 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request SQLite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants