Re: ERROR: SELECT query has no destination for result data

From: Joe <dev(at)freedomcircle(dot)net>
To: Ezequias Rodrigues da Rocha <ezequias(dot)rocha(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: ERROR: SELECT query has no destination for result data
Date: 2006-08-31 14:21:17
Message-ID: 44F6F05D.5040300@freedomcircle.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Ezequias Rodrigues da Rocha wrote:
> Hi list,
>
> I have a function like this:
>
> Create OR REPLACE Function base.inserirPontos(char(1), varchar(255),
> numeric(12,2), int8, int8, int8 ) returns int4 as
> $$
> declare
> Operacao alias for $1;
> Numero_nota alias for $2;
> Valor_nota alias for $3;
> PontoVenda_Emissor alias for $4;
> Cardpass alias for $5;
> Cx_Id alias for $6;
>
> begin
>
> -- Validando parâmetros passados na função
>
> if Operacao <> 'C' then
> return 1;
> else
> select count(id) as numRegistros from base.emissor_ponto_venda
> where id = PontoVenda_Emissor;
You haven't declared numRegistros.

Joe

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message John DeSoi 2006-08-31 14:26:10 Re: ERROR: SELECT query has no destination for result data
Previous Message Ezequias Rodrigues da Rocha 2006-08-31 13:58:52 Checking types