Skip to content

fix(cast format): Correct behavior of YEAR pattern#9052

Open
TreeHunter9 wants to merge 3 commits into
FirebirdSQL:masterfrom
TreeHunter9:master_cast_format_year_pattern_fix
Open

fix(cast format): Correct behavior of YEAR pattern#9052
TreeHunter9 wants to merge 3 commits into
FirebirdSQL:masterfrom
TreeHunter9:master_cast_format_year_pattern_fix

Conversation

@TreeHunter9
Copy link
Copy Markdown
Contributor

  • This pattern was taken from Oracle and is supposed to display spelled out year (TWENTY TWENTY-SIX). In the current implementation, it was equivalent to YYYY (i.e., the year as a number (2026)), which is incorrect;
  • Update existing tests and add new ones for the reimplemented YEAR pattern;
  • Fix incorrect variable names for TO_STRING_PATTERNS and TO_DATETIME_PATTERNS (usage was correct);

Artyom Ivanov added 3 commits June 5, 2026 14:36
…erns

Only names was incorrect, usage of these variables was correct;
This pattern was taken from Oracle and should represent `spelled out year (TWENTY TWENTY SIX)`. In it current implementation it was similar to YYYY (just year as number (2026)), which is incorrect.
@TreeHunter9 TreeHunter9 changed the title fix(cast format): Correct behavior of YEAR pattern fix(cast format): Correct behavior of YEAR pattern Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant