Re: error?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Victor Lopez <v(dot)lopez(dot)s(at)ono(dot)com>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: error?
Date: 2006-12-15 19:33:57
Message-ID: 20061215193357.GL14237@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Victor Lopez escribió:
> Así de corto es el asunto, porque no se de donde me viene el error ... alguien
> lo ve y me lo explica?
>
> db_multi_tec=# CREATE OR REPLACE FUNCTION actualizar_sesion(VARCHAR(64))
> RETURNS void AS
> db_multi_tec-# $$
> db_multi_tec$# DELETE FROM sesiones WHERE sesion = $1;
> db_multi_tec$# INSERT INTO sesiones (sesion) VALUES ($1);
> db_multi_tec$# $$
> db_multi_tec-# LANGUAGE plpgsql
> db_multi_tec-# SECURITY DEFINER;
> ERROR: syntax error en o cerca de «DELETE» at character 78
> LINEA 3: DELETE FROM sesiones WHERE sesion = $1;
> ^

Te falta el BEGIN y END

In response to

  • error? at 2006-12-15 19:14:55 from Victor Lopez

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Leonardo Castillo 2006-12-15 19:39:49 Sobre uso de memoria RAM
Previous Message Miguel Ortega 2006-12-15 19:33:45 Re: error?