Re: Problema con funcion

From: Gabriel Ferro <gabrielrferro(at)yahoo(dot)com(dot)ar>
To: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Problema con funcion
Date: 2007-01-12 13:32:58
Message-ID: 20070112133258.53658.qmail@web52102.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Por fin, logre hacerlo andar el problema principal era con el tipo de variable que recibia la funcion, debe ser bytea... hay que leerrr....jaja
les paso el codigo como quedo finalmente por si le sirve a alguien.-

CREATE OR REPLACE FUNCTION pasatabla("clave" bytea)
RETURNS void AS
$BODY$
DECLARE
clave ALIAS FOR $1;
BEGIN
insert into "Recibidas2"
Select "Sumario", "TipoInfo", ByteaText(decrypt("Info", clave, 'bf')) from "Recibidas";
END;$BODY$
LANGUAGE 'plpgsql' VOLATILE;

Mil gracias a todos..-
Saludos
Gabriel Ferro


---------------------------------
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
Probalo ya!

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Fernando Aguada 2007-01-12 13:54:01 Diferencias entre el driver ODBC Postgresql 7.03 y el Driver ODBC Postgresql ANSI 8.02
Previous Message Alvaro Herrera 2007-01-12 12:04:52 Re: odbc para Postgresql