pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #16435: regexp_split_to_table different behavior in 9.2 and 12.2
3+ messages / 3 participants
[nested] [flat]
* BUG #16435: regexp_split_to_table different behavior in 9.2 and 12.2
@ 2020-05-13 18:20 PG Bug reporting form <noreply@postgresql.org>
0 siblings, 1 reply; 3+ messages in thread
From: PG Bug reporting form @ 2020-05-13 18:20 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: prashant_rokad@yahoo.com
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #16435: regexp_split_to_table different behavior in 9.2 and 12.2
@ 2020-05-13 21:17 David G. Johnston <david.g.johnston@gmail.com>
parent: PG Bug reporting form <noreply@postgresql.org>
0 siblings, 1 reply; 3+ messages in thread
From: David G. Johnston @ 2020-05-13 21:17 UTC (permalink / raw)
To: prashant_rokad@yahoo.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
On Wed, May 13, 2020 at 12:14 PM PG Bug reporting form <
noreply@postgresql.org> wrote:
> 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.
>
This was intentional. You will need to rewrite your query - probably by
moving the call to regexp_split_to_table to the FROM clause and leveraging
the LATERAL feature.
David J.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #16435: regexp_split_to_table different behavior in 9.2 and 12.2
@ 2020-05-15 12:56 prashant rokad <prashant_rokad@yahoo.com>
parent: David G. Johnston <david.g.johnston@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: prashant rokad @ 2020-05-15 12:56 UTC (permalink / raw)
To: david.g.johnston@gmail.com <david.g.johnston@gmail.com>; PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Thank you so much for your reply. I will follow the same.
Regards,Prashant
Sent from Yahoo Mail on Android
On Thu, 14 May 2020 at 2:47 am, David G. Johnston<david.g.johnston@gmail.com> wrote: On Wed, May 13, 2020 at 12:14 PM PG Bug reporting form <noreply@postgresql.org> wrote:
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.
This was intentional. You will need to rewrite your query - probably by moving the call to regexp_split_to_table to the FROM clause and leveraging the LATERAL feature.
David J.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2020-05-15 12:56 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-05-13 18:20 BUG #16435: regexp_split_to_table different behavior in 9.2 and 12.2 PG Bug reporting form <noreply@postgresql.org>
2020-05-13 21:17 ` David G. Johnston <david.g.johnston@gmail.com>
2020-05-15 12:56 ` prashant rokad <prashant_rokad@yahoo.com>
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