Skip to content
/ server Public

MDEV-38583 : Fix TO_DATE Urdu parsing mismatch with Oracle#4649

Open
Mahmoud-kh1 wants to merge 1 commit intoMariaDB:mainfrom
Mahmoud-kh1:fix-urdu-parsing
Open

MDEV-38583 : Fix TO_DATE Urdu parsing mismatch with Oracle#4649
Mahmoud-kh1 wants to merge 1 commit intoMariaDB:mainfrom
Mahmoud-kh1:fix-urdu-parsing

Conversation

@Mahmoud-kh1
Copy link

@Mahmoud-kh1 Mahmoud-kh1 commented Feb 13, 2026

This pr fix the problem with parsing urdu dates.
previously, TO_DATE() would return NULL when using Urdu month or day names
image

I found the issue in the matching logic. I suspected some characters were written incorrectly and since these differences are not always visible to the eye I verified it using hex based testing.
Each character is encoded as four hex digits if we compare the values will see difference in the character before the last one, even they look identical , one of two words has this character as URDU and one as Arabic one.
error_in_maira_parsing_dates
I have fixed the harded coded words by replacing all with standard urdu and shows the hexa to ensure it's correct
hexaDays

Now it works as intended
fixErrorDate

also I have added test to verify this change

issue:
MDEV-38583

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant