| От | Greg Stark |
|---|---|
| Тема | row() is [not] null infelicities |
| Дата | |
| Msg-id | 87r70ujg2q.fsf@stark.xeocode.com обсуждение исходный текст |
| Ответы |
Re: row() is [not] null infelicities
Re: row() is [not] null infelicities |
| Список | pgsql-hackers |
The SQL spec has some detailed discussion of some strange null behaviours. Specifically "row(1,null) is null" is false but "row(1,null) is not null" is *also* supposed to be false. Postgres currently gets this wrong. "is [not] null" is apparently supposed to mean "all the fields are (not) null". So in the following the first query is correct but the second is incorrect: pgbench=# select row(1::integer, null::integer) is null;?column? ----------f (1 row) pgbench=# select row(1::integer, null::integer) is not null;?column? ----------t (1 row) -- greg
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера