Re: Unusual behaviour with intarray
От | Teodor Sigaev |
---|---|
Тема | Re: Unusual behaviour with intarray |
Дата | |
Msg-id | 3EA7D539.5030009@sigaev.ru обсуждение исходный текст |
Ответ на | Unusual behaviour with intarray (Adam Witney <awitney@sghms.ac.uk>) |
Ответы |
Re: Unusual behaviour with intarray
|
Список | pgsql-general |
Ok, this is a bug. I'll post a patch as soon as possible. Adam Witney wrote: > Hi, > > I am using intarray in contrib, and have seen some strange behaviour with > one of the operations. Anyone know whats going on here? > > cabbage=# create table test (id int, writers int[]); > CREATE TABLE > cabbage=# insert into test values(1, '{}'); > INSERT 1545023 1 > cabbage=# select * from test; > id | writers > ----+--------- > 1 | {} > (1 row) > > cabbage=# update test set writers = (select writers - '{1}'::int[]); > UPDATE 1 > cabbage=# select * from test; > id | writers > ----+--------- > 1 | {} > (1 row) > > cabbage=# update test set writers = (select writers - '{1}'::int[]); > UPDATE 1 > cabbage=# select * from test; > id | writers > ----+----------- > 1 | {3044207} > (1 row) > > Thanks for any help > > Adam > > -- Teodor Sigaev E-mail: teodor@sigaev.ru
В списке pgsql-general по дате отправления: