Re: <no subject>

From: Richard Huxton <dev(at)archonet(dot)com>
To: "Daniel Schuchardt" <daniel_schuchardt(at)web(dot)de>, pgsql-general(at)postgresql(dot)org
Subject: Re: <no subject>
Date: 2003-10-01 10:07:43
Message-ID: 200310011107.43835.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday 01 October 2003 10:57, Daniel Schuchardt wrote:
> Hi @ all,
>
> I think thats a bug:
>
> SELECT '#' || '#'
>
> will work but
>
> SELECT '#' || CAST(NULL AS VARCHAR)

Nope - not a bug.

> will return only empty rows.
> My Query looks like this : SELECT field1 || field2 FROM ...
> If field2 ISNULL then everything is null. CAST does not help.

Broadly speaking VALUE op NULL = NULL
You'll see similar issues with comparisons. You might find the article below
useful:

http://techdocs.postgresql.org/guides/BriefGuideToNulls
--
Richard Huxton
Archonet Ltd

In response to

  • <no subject> at 2003-10-01 09:57:29 from Daniel Schuchardt

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Daniel Schuchardt 2003-10-01 10:19:01 Re: <no subject>
Previous Message Daniel Schuchardt 2003-10-01 09:57:29 <no subject>