From: | Hunaid Sohail <hunaidpgml(at)gmail(dot)com> |
---|---|
To: | Aleksander Alekseev <aleksander(at)timescale(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Cc: | Maciek Sakrejda <maciek(at)pganalyze(dot)com>, maciek(at)sakrejda(dot)org |
Subject: | Re: [PATCH] Add roman support for to_number function |
Date: | 2024-09-07 09:24:23 |
Message-ID: | CAMWA6yaEReAP=DCAm_FG-NCZ_0kpg5jr_XfNEu2nuF6D+L--nQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
On Thu, Sep 5, 2024 at 2:41 PM Aleksander Alekseev <aleksander(at)timescale(dot)com>
> wrote:
>
>>
>> While playing with the patch I noticed that to_char(..., 'RN') doesn't
>> seem to be test-covered. I suggest adding the following test:
>>
>> ```
>> WITH rows AS (
>> SELECT i, to_char(i, 'FMRN') AS roman
>> FROM generate_series(1, 3999) AS i
>> ) SELECT bool_and(to_number(roman, 'RN') = i) FROM rows;
>>
>> bool_and
>> ----------
>> t
>> ```
>>
>
>
I have added this test in the attached patch (v3). Thank you once again,
Aleksander, for the suggestion.
Regards,
Hunaid Sohail
Attachment | Content-Type | Size |
---|---|---|
v3-0001-Add-RN-rn-support-for-to_number-function.patch | application/octet-stream | 9.4 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2024-09-07 09:55:09 | Re: First draft of PG 17 release notes |
Previous Message | Anton A. Melnikov | 2024-09-07 07:38:06 | Re: Use XLOG_CONTROL_FILE macro everywhere? |