Orafce concat operator - Mailing list pgsql-general

From Yeb Havinga
Subject Orafce concat operator
Date
Msg-id 4B72BCFB.5050508@gmail.com
Whole thread Raw
Responses Re: Orafce concat operator  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-general
Hello list,

The Orafce compatibility package doesn't seem to have operators defined
(looked in the sql load file). The function I'm specifically interested
in, is Oracle's concatenation that regards a NULL as the empty string
and hence returns 'the other value'. This in contrast with Pg's || that
returns NULL if either of the operands is NULL. The Orafce package
contains a concat function with Oracle behaviour, however an operator is
missing.

Having an associative operator has benefits over having only a function,
since that would make translating expressions like 'monkey' || 'nut' ||
NULL easy.

What about adding something like operator ||| in the orafce package for
concat?

Regards,
Yeb Havinga


pgsql-general by date:

Previous
From: Frank Joerdens
Date:
Subject: Re: Locking referenced table when creating and dropping tables with foreign key constraints (SOLVED)
Next
From: Asher
Date:
Subject: Re: Best way to handle multi-billion row read-only table?