Skip to content

PostgreSQL: Parse custom typed string literals - #2689

Open
LucaCappelletti94 wants to merge 1 commit into
mainfrom
upstream/postgres-generic-typed-literal
Open

LucaCappelletti94 wants to merge 1 commit into
mainfrom
upstream/postgres-generic-typed-literal

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

For an existing user-defined type mood, PostgreSQL permits SELECT mood 'happy', meaning the value 'happy' with type mood. The parser rejects it in projections, predicates, and function arguments.

This PR adds support for this typed-constant syntax for user-defined types.

@LucaCappelletti94 LucaCappelletti94 added enhancement New feature or request PostgreSQL labels Oct 19, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.77778% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 81.33%. Comparing base (d32825d) to head (0bd18e1).

Files with missing lines Patch % Lines
src/parser/mod.rs 97.14% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2689      +/-   ##
==========================================
+ Coverage   81.29%   81.33%   +0.03%     
==========================================
  Files          42       42              
  Lines       33950    33981      +31     
  Branches    33950    33981      +31     
==========================================
+ Hits        27601    27638      +37     
  Misses       2785     2785              
+ Partials     3564     3558       -6     

☔ 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

enhancement New feature or request PostgreSQL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants