BUG #16465: Inconsistent results from comparison of row value expressions

Поиск
Список
Период
Сортировка
От PG Bug reporting form
Тема BUG #16465: Inconsistent results from comparison of row value expressions
Дата
Msg-id 16465-0ec89f0382fd00db@postgresql.org
обсуждение исходный текст
Ответы Re: BUG #16465: Inconsistent results from comparison of row valueexpressions
Re: BUG #16465: Inconsistent results from comparison of row value expressions
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      16465
Logged by:          Lukas Eder
Email address:      lukas.eder@gmail.com
PostgreSQL version: 12.2
Operating system:   Debian 12.2-2.pgdg100+1 (Docker)
Description:

Consider this query:

---------------------------------------------------
SELECT (1, NULL::INT) = (1, NULL::INT), A = B
FROM (SELECT (1, NULL::INT) A, (1, NULL::INT) B) T;
---------------------------------------------------

The result is:

?column?|?column?|
--------|--------|
        |true    |

It seems the comparison of row value expressions with respect to NULLs is
inconsistent depending on whether the expressions are compared directly
(first column), or indirectly from derived tables (second column). My
reading of the SQL standard is that the second one is incorrect.


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Re[2]:
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: error