BUG #7620: array_to_json doesn't support heterogeneous arrays

From: ghazel(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #7620: array_to_json doesn't support heterogeneous arrays
Date: 2012-10-23 23:32:38
Message-ID: E1TQnxe-0002WI-DP@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 7620
Logged by: Greg Hazel
Email address: ghazel(at)gmail(dot)com
PostgreSQL version: 9.2.1
Operating system: Amazon Linux
Description:

array_to_json(ARRAY['foo', 100, true]) complains because arrays can't have
mixed types, but json arrays can.

So, it's not possible to form a heterogeneous json array, when this is often
desired.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Merlin Moncure 2012-10-24 01:03:32 Re: BUG #7620: array_to_json doesn't support heterogeneous arrays
Previous Message John R Pierce 2012-10-23 18:20:40 Re: Posrgresql for Suse linux 64-bit version on OS/390