error?

From: Victor Lopez <v(dot)lopez(dot)s(at)ono(dot)com>
To: pgsql-es-ayuda(at)postgresql(dot)org
Subject: error?
Date: 2006-12-15 19:14:55
Message-ID: 200612152014.55417.v.lopez.s@ono.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

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;
^

(en fuente de ancho fijo, el marcador de error queda debajo de la 'D'
de 'DELETE'
--
----o---( )---o----
Saludos de Victor Lopez Sabio
v(dot)lopez(dot)s(at)ono(dot)com
--------oooo--------

Responses

  • Re: error? at 2006-12-15 19:33:45 from Miguel Ortega
  • Re: error? at 2006-12-15 19:33:57 from Alvaro Herrera
  • Re: error? at 2006-12-15 19:44:24 from Mario
  • Re: error? at 2006-12-15 22:23:23 from Victor Lopez

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Miguel Ortega 2006-12-15 19:33:45 Re: error?
Previous Message Alvaro Herrera 2006-12-15 18:51:59 Re: Postgres en Mantención