| From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
|---|---|
| To: | gabriela lópez <gabydhi(at)hotmail(dot)com> |
| Cc: | pgsql-es-ayuda(at)postgresql(dot)org |
| Subject: | Re: Ayuda con variables de funciones |
| Date: | 2005-07-28 23:45:26 |
| Message-ID: | 20050728234526.GG6807@alvh.no-ip.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-es-ayuda |
On Thu, Jul 28, 2005 at 11:05:37PM +0000, gabriela lópez wrote:
> CREATE OR REPLACE FUNCTION sp_nuevoinicio(varchar, varchar)
> RETURNS void AS
> $BODY$CREATE USER $1 PASSWORD ' $2 '
> CREATEDB CREATEUSER
> VALID UNTIL 'infinity';
> ALTER GROUP "AW" ADD USER $1;$BODY$
> LANGUAGE 'sql' VOLATILE;
>
> Marca error por los pesitos.
Que version del servidor estas usando?
select version();
Los $body$ estan soportados solo de 8.0 en adelante.
--
Alvaro Herrera (<alvherre[a]alvh.no-ip.org>)
"Now I have my system running, not a byte was off the shelf;
It rarely breaks and when it does I fix the code myself.
It's stable, clean and elegant, and lightning fast as well,
And it doesn't cost a nickel, so Bill Gates can go to hell."
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2005-07-28 23:47:21 | Re: DoS al hacer un sub select |
| Previous Message | tania gutierrez | 2005-07-28 23:43:45 | Re: problemas en postgresql -- ayuda !!!!!! |