PostgreSQL Bugs

Collected from the PG bugs email list.

Bug ID16435
PG Version12.2
OSWindows
Opened2020-05-13 18:20:36+00
Reported byprashant
StatusNew

Body of first available message related to this bug follows.

The following bug has been logged on the website:

Bug reference:      16435
Logged by:          prashant
Email address:      (redacted)
PostgreSQL version: 12.2
Operating system:   Windows
Description:        

Hi,

we are upgrading postgresql from 9.2 to 12.2 and observed that
"regexp_split_to_table" functions is giving different output in 12.2 than
9.2.

Sample code:
SELECT regexp_split_to_table(Column1, E',')::INT AS column1
       ,CASE WHEN column2 IS FALSE THEN NULL ELSE
regexp_split_to_table(column2, E',') END::bigint col
FROM [Table]

Also when we use function in CASE condition it is giving different output in
both version.

Sample code:
SELECT CASE WHEN column2 NOT LIKE '%test%' THEN '123' ELSE
public.fn_function_call(column2) END as a
FROM [Table]

Any help is highly appreciated.

Thanks

Messages

DateAuthorSubject
2020-05-13 18:20:36+00PG Bug reporting formBUG #16435: regexp_split_to_table different behavior in 9.2 and 12.2
2020-05-13 21:17:23+00"David G(dot) Johnston"Re: BUG #16435: regexp_split_to_table different behavior in 9.2 and 12.2
2020-05-15 12:56:29+00prashant rokadRe: BUG #16435: regexp_split_to_table different behavior in 9.2 and 12.2