Re: jsonb_array_elements issue

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: mephysto <mephystoonhell(at)gmail(dot)com>
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: jsonb_array_elements issue
Date: 2016-08-05 14:42:22
Message-ID: CAKFQuwZvbHFh6z8GamjHHXZsE6auRL4Nnee_8=jVSPQv9=5=aw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, Aug 5, 2016 at 9:39 AM, mephysto <mephystoonhell(at)gmail(dot)com> wrote:

> Hi there,
> I found an issue in jsonb_array_elements that can be a bug. I am using
> PostgreSQL 9.5.3.

​Nabble generates emails that these lists do not properly accept - all of
your json and queries got stripped out.

Anyway, the queries you provided gave me "function not found errors".

I did get the following to work just fine though...

select jsonb_array_elements(
((
'{"skillId":58,"applicationConditionId":1,"skillName":"[{\"id\":1,\"text\":\"Armatura\"},{\"id\":2,\"text\":\"Armor\"}]","skillDescription":"[{\"id\":1,\"text\":\"Riduce
ATK DMG ricevuto dalla Carta Personaggio di
#[$$X$$]#\"},{\"id\":2,\"text\":\"Reduce ATK DMG dealt to Character Card by
#[$$X$$]#\"}]","affectsData":[{"activationTime":1000,"affectId":0,"affectTarget":1,"affectTrigger":2,"afterOrBeforeTriggeringAction":1,"effectData":{"effectFormula":"1*$$X$$","effectId":73,"effectTarget":1,"timeSchedule":""},"timesToTrigger":-1}],"effectsData":[]}'::JSONB
)->>'affectsData'
)::jsonb)

David J.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2016-08-05 14:54:00 Re: BUG #14280: Error in PostgreSQL - could not extend file "base...": File too large
Previous Message mephysto 2016-08-05 13:39:12 jsonb_array_elements issue