Re: Case Insensitive comparison

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Roberto Mello <rmello(at)cc(dot)usu(dot)edu>
Cc: "George A(dot)J" <jinujosein(at)yahoo(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Case Insensitive comparison
Date: 2003-09-25 13:20:46
Message-ID: 20030925132046.GA27357@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, Sep 24, 2003 at 23:30:08 -0600,
Roberto Mello <rmello(at)cc(dot)usu(dot)edu> wrote:
> On Wed, Sep 24, 2003 at 08:35:50PM -0700, George A.J wrote:
>
> > Another problem is in creating function...
> > How can i create a function that accept and return any type. the type "any" is not allowing as parameter or return type. Is it possible? i want to create a function similar to NULLIF().
>
> Use the standard coalesce().

coalesce is used to do the inverse of nullif. Postgres also has a nullif
function.

I suspect that he relly doesn't want to use either of those, but instead
wants to have some function that returns the same type as its argument
without having to write one function for each different type. There is
something along those lines coming in 7.4.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message George A.J 2003-09-25 14:04:07 Re: Case Insensitive comparison
Previous Message vijaykumar M 2003-09-25 12:36:26 Re: few questions ..?