casting strings to multidimensional arrays yields strange results

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема casting strings to multidimensional arrays yields strange results
Дата
Msg-id Pine.BSO.4.56.0407270110260.14015@leary.csoft.net
обсуждение исходный текст
Ответы Re: casting strings to multidimensional arrays yields strange results  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Casting strings to multidimensional arrays yields strange results.  In one
case there are discard values and the other a value magically appears.
Trying both of these with the array[] constructor syntax yields the
expected:
ERROR:  multidimensional arrays must have array expressions with matching
dimensions

Tested on both 7.4.3 and 7.5dev.

Kris Jurka

jurka=# SELECT '{{1,2},{2,3},{4}}'::int[][];
     int4
---------------
 {{1},{2},{4}}

jurka=# SELECT '{{1},{2,3},{4,5}}'::int[][];
        int4
---------------------
 {{1,0},{2,3},{4,5}}

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1200: VACUUM ANALYZE bug
Следующее
От: "PostgreSQL Bugs List"
Дата:
Сообщение: BUG #1201: void functions called through jdbc driver return error