Skip to content

SQLite: Support NOT GLOB and NOT MATCH - #3043

Open
LucaCappelletti94 wants to merge 1 commit into
mainfrom
sqlite-not-glob
Open

LucaCappelletti94 wants to merge 1 commit into
mainfrom
sqlite-not-glob

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

SQLiteDialect parses a GLOB b and a MATCH b but rejects their negated forms, which SQLite accepts.

CREATE INDEX i ON t(id) WHERE id NOT GLOB 'h-*';
-- Expected: IN or BETWEEN after NOT, found: GLOB

The SQLite infix hook now also reads NOT GLOB and NOT MATCH as the new BinaryOperator::NotGlob and BinaryOperator::NotMatch, at the precedence the plain operators already have.

@LucaCappelletti94 LucaCappelletti94 added enhancement New feature or request api change fuzzer A bug found by the fuzzer SQLite labels Nov 24, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.56%. Comparing base (ba850fa) to head (851a228).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3043   +/-   ##
=======================================
  Coverage   83.56%   83.56%           
=======================================
  Files          42       42           
  Lines       35689    35693    +4     
  Branches    35689    35693    +4     
=======================================
+ Hits        29822    29828    +6     
  Misses       2429     2429           
+ Partials     3438     3436    -2     

☔ 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

Labels

api change enhancement New feature or request fuzzer A bug found by the fuzzer SQLite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants