Re: Cleaning up array_in()
От | Tom Lane |
---|---|
Тема | Re: Cleaning up array_in() |
Дата | |
Msg-id | 684482.1699459017@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Cleaning up array_in() (Alexander Lakhin <exclusion@gmail.com>) |
Список | pgsql-hackers |
Alexander Lakhin <exclusion@gmail.com> writes: > Thank you for the update! I haven't looked into the code, just did manual > testing and rechecked commands given in the arrays documentation ([1]). > Everything works correctly, except for one minor difference: > INSERT INTO sal_emp > VALUES ('Bill', > '{10000, 10000, 10000, 10000}', > '{{"meeting", "lunch"}, {"meeting"}}'); > currently gives: > ERROR: malformed array literal: "{{"meeting", "lunch"}, {"meeting"}}" > LINE 4: '{{"meeting", "lunch"}, {"meeting"}}'); > ^ > DETAIL: Multidimensional arrays must have sub-arrays with matching dimensions. > not > ERROR: multidimensional arrays must have array expressions with matching dimensions Oh! I had not realized we had actual documentation examples covering this area. Yeah, that doc needs to be updated to show the current wording of the error. Thanks for catching that. regards, tom lane
В списке pgsql-hackers по дате отправления: