Nested comparison semantics are unpredictable
От | Richard Wesley |
---|---|
Тема | Nested comparison semantics are unpredictable |
Дата | |
Msg-id | B8388D26-947E-482E-8359-325E54083969@duckdblabs.com обсуждение исходный текст |
Ответы |
Re: Nested comparison semantics are unpredictable
|
Список | pgsql-bugs |
psql (17.5 (Postgres.app))
Type "help" for help.
hawkfish=# with tbl_s_null as (
hawkfish(# select *
hawkfish(# from (
hawkfish(# values (row(1), row(0)), (row(1), row(1)), (row(1), NULL), (row(1), row(NULL::int))
hawkfish(# ) as tbl_s_null(col0, col1)
hawkfish(# )
hawkfish-# SELECT x.col1, y.col1, x.col1 = y.col1, x.col1 != y.col1
hawkfish-# FROM tbl_s_null x CROSS JOIN tbl_s_null y
hawkfish-# ORDER BY x.col1, y.col1 NULLS LAST;
col1 | col1 | ?column? | ?column?
------+------+----------+----------
(0) | (0) | t | f
(0) | (1) | f | t
(0) | () | f | t
(0) | | |
(1) | (0) | f | t
(1) | (1) | t | f
(1) | () | f | t
(1) | | |
() | (0) | f | t
() | (1) | f | t
() | () | t | f
() | | |
| (0) | |
| (1) | |
| () | |
| | |
(16 rows)
hawkfish=# select row(0) = row(NULL);
?column?
----------
(1 row)
В списке pgsql-bugs по дате отправления: