Re: Bug #851: cast() no longer works in array inserts

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug #851: cast() no longer works in array inserts
Дата
Msg-id 15985.1040278604@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bug #851: cast() no longer works in array inserts  (pgsql-bugs@postgresql.org)
Список pgsql-bugs
Malcolm Tredinnick <malcolm@commsecure.com.au> writes:
> So given that one cannot just insert 0 into a bigint field (even an
> array of bigints), since postgres complains it is not of the correct
> type, how is one supposed to fille a field of bigint[] with {0, 0}?

I must be missing something ... what is wrong with

regression=# create table foo (bar bigint[]);
CREATE TABLE
regression=# insert into foo values ('{0, 0}');
INSERT 1101788 1
regression=# select * from foo;
  bar
-------
 {0,0}
(1 row)

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Bug #851: cast() no longer works in array inserts
Следующее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #852: Wrong sequence name generated