Re: BUG #18451: NULL fails to coerce to string when performing string comparison
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #18451: NULL fails to coerce to string when performing string comparison |
| Дата | |
| Msg-id | 1822025.1714514821@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: BUG #18451: NULL fails to coerce to string when performing string comparison (Darryl Dixon <darryl.dixon@gmail.com>) |
| Ответы |
Re: BUG #18451: NULL fails to coerce to string when performing string comparison
|
| Список | pgsql-bugs |
Darryl Dixon <darryl.dixon@gmail.com> writes:
> The bug is that:
> 1) The concatenation is not producing NULL, but rather Text, and yet the
> comparison fails regardless, and
> 2) The explicit CAST of NULL -> Text fails to remedy this.
I wonder what you think NULL means. You certainly don't appear to
understand its semantics at all. Every SQL data type allows NULL
as a value, so "casting NULL to text" doesn't change the value,
only what type the parser deems it to have.
> Further examples below:
Every one of these looks as-expected to me.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера