Silent insert lack

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема Silent insert lack
Дата
Msg-id 200101151131.f0FBVcY67421@hub.org
обсуждение исходный текст
Ответы Re: Silent insert lack  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Luca Saccarola (l.saccarola@bigfoot.com) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
Silent insert lack

Long Description
'insert' statement using a view seems to be accepted with no error message:

  MyDB=> insert into test_u (col1, col2) values ('1', '1');
  INSERT 50371 1

but any following 'select' statements reports an empty table:

  MyDB=> select * from test_pt;
   col1 | col2
  ------+------
  {0 rows)

My environment is PostgreSQL v7.0.3 on Linux 2.2.16 (Red Hat 7.0).


Sample Code
*** using psql:

create table test_pt (col1 varchar(20), col2 varchar(20));
create view test_u as select t1.col1, t1.col2 from test_pt t1;
insert into test_u (col1, col2) values ('1', '1');
select * from test_pt;

No file was uploaded with this report

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Query Problem!!
Следующее
От: Gena Gurchonok
Дата:
Сообщение: table creation