Re: FUNCTION REPLACE() "does not exist" ?

From: Joe Conway <mail(at)joeconway(dot)com>
To: Tom Müller-Ackermann <tma(at)tarent(dot)de>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: FUNCTION REPLACE() "does not exist" ?
Date: 2003-08-06 03:58:28
Message-ID: 3F307CE4.8030606@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Tom Müller-Ackermann wrote:
> is it a known bug that the replace-function "does not exist" (even with
> typecasting the params to TEXT)? The function is in the Documentation,
> but does not work like documented, or am I missing something?

It exists starting in 7.3.

test=# select version();
version
-----------------------------------------------------------------
PostgreSQL 7.3.3 on i686-redhat-linux-gnu, compiled by GCC 2.96
(1 row)

test=# select replace('abcabc','ab','xy');
replace
---------
xycxyc
(1 row)

What version are you using? And if it is at least 7.3, show us the
command you're trying to execute.

Joe

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Kaarel 2003-08-06 10:30:48 Re:
Previous Message Ritesh Bhatnagar 2003-08-06 03:28:21