Re: 9.3: bug related to json - Mailing list pgsql-general

From David G Johnston
Subject Re: 9.3: bug related to json
Date
Msg-id 1424845378831-5839310.post@n5.nabble.com
Whole thread Raw
In response to 9.3: bug related to json  (Torsten Förtsch <torsten.foertsch@gmx.net>)
Responses Re: 9.3: bug related to json
List pgsql-general
Torsten Förtsch wrote
>  cross join lateral (
>      select string_agg(', ', syms.sym ->> 'x') as xx
>        from json_array_elements(t.el -> 's')
>             syms(sym)

I'm doubting you intended to join a bunch of commas using the field value as
the delimiter...methinks your got the argument order reversed for
string_agg.

David J.




--
View this message in context: http://postgresql.nabble.com/9-3-bug-related-to-json-tp5839261p5839310.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


pgsql-general by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Row-level Security vs Application-level authz
Next
From: David G Johnston
Date:
Subject: Re: 9.3: bug related to json