From: | marko(at)joh(dot)to |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Cc: | marko(at)joh(dot)to |
Subject: | BUG #14849: jsonb_build_object doesn't like VARIADIC calls very much |
Date: | 2017-10-11 02:00:58 |
Message-ID: | [email protected] |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
The following bug has been logged on the website:
Bug reference: 14849
Logged by: Marko Tiikkaja
Email address: marko(at)joh(dot)to
PostgreSQL version: 10.0
Operating system: Linux
Description:
Hi,
This query fails with an unreasonable error message:
=# SELECT jsonb_build_object(VARIADIC '{a,b}'::text[]);
ERROR: invalid number of arguments: object must be matched key value
pairs
jsonb_object(text[]) can be used instead in this case, so perhaps
jsonb_build_object() could simply point to that one if a variadic call like
this is made?
From | Date | Subject | |
---|---|---|---|
Next Message | Lukas Eder | 2017-10-11 08:49:19 | Combination of ordered-set aggregate function terminates JDBC connection on PostgreSQL 9.6.5 |
Previous Message | Tom Lane | 2017-10-10 21:25:24 | Re: BUG #14830: Missed NOTIFications, PostgreSQL 9.1.24 |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2017-10-11 02:06:38 | Re: pg_regress help output |
Previous Message | Michael Paquier | 2017-10-11 01:51:56 | Re: Is it time to kill support for very old servers? |