Re: function nvl(numeric, integer) does not exist - Mailing list pgsql-admin

From Albe Laurenz
Subject Re: function nvl(numeric, integer) does not exist
Date
Msg-id A737B7A37273E048B164557ADEF4A58B50FEA95A@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to function nvl(numeric, integer) does not exist  (clingareddy@vsoftcorp.com)
List pgsql-admin
clingareddy@vsoftcorp.com wrote:
> I am getting below error while running Below mention query in postgres 9.2.
> Please help on this..
> 
> ERROR: function nvl(numeric, integer) does not exist
> LINE 1: SELECT USER_ID, USER_PWD, INST_ID, NVL(ROLE_ID,0) AS ROLE_ID...
> ^
> HINT: No function matches the given name and argument types.. You might need to add explicit type
> casts.

There is no NVL function in PostgreSQL.
Use the standard conforming COALESCE instead.

Yours,
Laurenz Albe

pgsql-admin by date:

Previous
From: Ville Rantamaula
Date:
Subject: Re: How to create a read only user account to access to all pg database?
Next
From: Albe Laurenz
Date:
Subject: Re: Question on Hot Standby in PostgreSQL