array_in sub function ReadArrayDimensions error message

From: jian he <jian(dot)universality(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: array_in sub function ReadArrayDimensions error message
Date: 2024-07-08 10:37:00
Message-ID: CACJufxExAcpvrkbLGrZGdZ=bFAuj7OVp1mOhk+fsBzeUbOGuHQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

while reviewing the json query doc,
I found out the following error message was not quite right.

select '[1,2]'::int[];
ERROR: malformed array literal: "[1,2]"
LINE 1: select '[1,2]'::int[];
^
DETAIL: Missing "]" after array dimensions.
should it be:
"Missing delimiter ":" while specifying array dimensions."
?
Because here, the first problem is the comma should be colon.

also
"DETAIL: Missing "]" after array dimensions."
should be
DETAIL: Missing "]" while specifying array dimensions.
?

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Matthias van de Meent 2024-07-08 10:45:13 Re: Thoughts on NBASE=100000000
Previous Message Dave Page 2024-07-08 10:32:23 Re: tests fail on windows with default git settings