Skip to content

SQLite, PostgreSQL: Support the postfix ISNULL operator - #2786

Open
LucaCappelletti94 wants to merge 1 commit into
mainfrom
postfix-isnull-operator
Open

LucaCappelletti94 wants to merge 1 commit into
mainfrom
postfix-isnull-operator

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

SELECT a ISNULL FROM t parsed as the alias a AS ISNULL, and SELECT * FROM t WHERE a ISNULL failed, although both engines accept ISNULL as a postfix form of IS NULL.

This mirrors the NOTNULL support from #1927 with an ISNULL keyword and a supports_isnull_operator dialect method enabled for SQLite and PostgreSQL. ISNULL(a, b) as a function is unchanged in the other dialects.

https://www.sqlite.org/lang_expr.html and https://www.postgresql.org/docs/current/functions-comparison.html

@LucaCappelletti94 LucaCappelletti94 added enhancement New feature or request fuzzer A bug found by the fuzzer PostgreSQL SQLite labels Oct 31, 2026
@codecov-commenter

codecov-commenter commented Oct 31, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.54%. Comparing base (46cbf0d) to head (d4d8308).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2786   +/-   ##
=======================================
  Coverage   83.54%   83.54%           
=======================================
  Files          42       42           
  Lines       35668    35682   +14     
  Branches    35668    35682   +14     
=======================================
+ Hits        29798    29812   +14     
  Misses       2432     2432           
  Partials     3438     3438           

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

slopgobblercobbler

This comment was marked as low quality.

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants