From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: prashant_rokad@yahoo.com
Subject: BUG #16435: regexp_split_to_table different behavior in 9.2 and 12.2
Date: Wed, 13 May 2020 18:20:36 +0000
Message-ID: <16435-7b4424691f9ba3dc@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 16435
Logged by: prashant
Email address: prashant_rokad@yahoo.com
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, prashant_rokad@yahoo.com
Subject: Re: BUG #16435: regexp_split_to_table different behavior in 9.2 and 12.2
In-Reply-To: <16435-7b4424691f9ba3dc@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox