Suso Lopez escribió:
> Hola de nuevo, tengo una funcion :
> CREATE OR REPLACE FUNCTION prueba(n_cli integer, existe boolean)
>   RETURNS boolean AS
> $BODY$
> DECLARE
>     valores ctr_alt%ROWTYPE;
> BEGIN
> .....
> 
> Me dice que no existe esa tabla, y la funcion esta creada para - en esa-
> tabla.

Acá funciona.  Muestra el mensaje de error completo por favor.

alvherre=# create table ctr_alt (a int, b text);
CREATE TABLE
alvherre=# create or replace function prueba(a int, b boolean) returns boolean 
as $$ declare col ctr_alt%rowtype; begin return true; end; $$ language plpgsql;
CREATE FUNCTION
alvherre=# select prueba (1, 't');
 prueba 
--------
 t
(1 fila)


-- 
Alvaro Herrera                  http://www.amazon.com/gp/registry/5ZYLFMCVHXC
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end." (2nd Commandment for C programmers)
--
TIP 3: Si encontraste la respuesta a tu problema, publícala, otros te lo 
agradecerán

Responder a