Re: Diferences between functions criated in pg 8.0.4 and criated in pg 7.4.8

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Diferences between functions criated in pg 8.0.4 and criated in pg 7.4.8
Date: 2006-05-14 13:50:05
Message-ID: 20060514135005.GA20969@KanotixBox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alejandro Michelin Salomon ( Adinet ) <alejmsg(at)adinet(dot)com(dot)uy> schrieb:
> I criated some function in my pg 8.0.4, they function as spected.
>
> But when i try tu criate this functions in my hosting that has pg 7.4.8, i
> can not do.
> I read documentation an i see some disferences.
>
> This is one of original function that i try to criate :
>
> CREATE OR REPLACE FUNCTION LEFT( sTexto CHARACTER VARYING, nPosFin INTEGER )
> RETURNS "varchar" AS $$
^^
this works only since 8.0 or 8.1, i'm not sure, but not in 7.x.

You need "create or replace ... as '" and within the funktion '' for
single '. Please read the documentation for 7.x.

HTH, Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alejandro Michelin Salomon ( Adinet ) 2006-05-14 14:08:47 RES: Diferences between functions criated in pg 8.0.4 and criated in pg 7.4.8
Previous Message Martijn van Oosterhout 2006-05-14 13:38:24 Re: Diferences between functions criated in pg 8.0.4 and criated in pg 7.4.8