Re: [HACKERS] Associative Operators? (Was: Re: [NOVICE] Out of f rying pan, into fire)

From: Zeugswetter Andreas IZ5 <Andreas(dot)Zeugswetter(at)telecom(dot)at>
To: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Associative Operators? (Was: Re: [NOVICE] Out of f rying pan, into fire)
Date: 1999-03-17 08:29:00
Message-ID: 219F68D65015D011A8E000006F8590C60267B31F@sdexcsrv1.f000.d0188.sd.spardat.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> >> I tried to create a C function to overcome this but noticed that if any
> >> parameter in my C function is NULL then the C function always returns
> NULL.
> >> I saw some references in the archives about this issue but was unable
> to
> >> determine where it was left. What is the status of this issue?
>
Yes, this is current behavior.

> Would a compromise be to add DECODE and NVL ?

The Standard has the more flexible function COALESCE, which is already
implemented in postgresql.
Simply say coalesce(field_that_can_be_null,value_to_return_insteadof_null)

Andreas

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 1999-03-17 08:47:36 Re: [HACKERS] Re: Developers Globe (FINAL)
Previous Message Vadim Mikheev 1999-03-17 07:07:36 Re: [HACKERS] Subqueries and indexes