Skip to content

PostgreSQL: Parse NCHAR as a character string type - #2906

Open
LucaCappelletti94 wants to merge 1 commit into
upstream/national-char-varyingfrom
upstream/nchar
Open

LucaCappelletti94 wants to merge 1 commit into
upstream/national-char-varyingfrom
upstream/nchar

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

NCHAR(4) parses only because unknown type names fall through to DataType::Custom, so it reaches consumers as an opaque name with a string modifier instead of a character string type with a length.

parse_data_type now reads it into DataType::Nchar, which prints back as written, the same way CHARACTER VARYING and CHAR VARYING are kept apart.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (upstream/national-char-varying@7e4d871). Learn more about missing BASE report.

Additional details and impacted files
@@                        Coverage Diff                        @@
##             upstream/national-char-varying    #2906   +/-   ##
=================================================================
  Coverage                                  ?   83.22%           
=================================================================
  Files                                     ?       42           
  Lines                                     ?    36503           
  Branches                                  ?    36503           
=================================================================
  Hits                                      ?    30378           
  Misses                                    ?     2632           
  Partials                                  ?     3493           

☔ 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 added enhancement New feature or request api change labels Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants