BUG #18001: Invalid subquery passed as true

Поиск
Список
Период
Сортировка
От PG Bug reporting form
Тема BUG #18001: Invalid subquery passed as true
Дата
Msg-id 18001-6c2b79083f5a35f3@postgresql.org
обсуждение исходный текст
Ответы Re: BUG #18001: Invalid subquery passed as true  (Julien Rouhaud <rjuju123@gmail.com>)
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      18001
Logged by:          Piet van Ham
Email address:      pvham90@gmail.com
PostgreSQL version: 11.20
Operating system:   Linux
Description:

create table table_a (column_a varchar(16), column_b varchar(16));
create table table_b (column_c varchar(16), column_d varchar(16));

insert into table_a (column_a, column_b) values ('row1a','row1b');
insert into table_b (column_c, column_d) values ('row2a','row2b');

delete from table_a where column_a in (select column_a from table_b); --the
subquery is invalid, but the where clause is passed as true resulting in all
records deleted

select count(*) from table_a; 
-- 0


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #17998: Postgres crashes when executing WorkTableScan.
Следующее
От: Julien Rouhaud
Дата:
Сообщение: Re: BUG #18001: Invalid subquery passed as true