On Wed, 1 May 2024 at 10:01, Darryl Dixon <darryl(dot)dixon(at)gmail(dot)com> wrote:
>
> The bug is that:
> 1) The concatenation is not producing NULL, but rather Text, and yet the comparison fails regardless, and
I think you're just wrongly assuming casting an unknown NULL to a type
is making it somehow non-NULL. That's just not the case. NULLs can
have a type. They're still NULL.
postgres=# select 'ab' || NULL::text is null;
?column?
----------
t
David