Re: string concatenation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Gyorgy Molnar" <yuri(at)powercom(dot)com(dot)sg>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: string concatenation
Date: 2002-10-14 17:31:47
Message-ID: 17279.1034616707@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Gyorgy Molnar" <yuri(at)powercom(dot)com(dot)sg> writes:
> I got an empty string for result. I think I got this result because the
> string concatenation ("||") was created with "isstrict" flag. In this case
> it will give back NULL object if one of the arguments was NULL object.

Actually, you got back a NULL, not an empty string. There is a big
difference (even if Oracle confuses the two concepts).

> Is this feature will change in the future?

No. That's what the SQL standard says to do, and that's what we plan to
keep doing. You can make your own nonstandard concatenation function
if you feel like it, though.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message jj 2002-10-14 17:44:52 pgAdmin II connection problem
Previous Message Bruce Momjian 2002-10-14 17:25:54 Re: string concatenation