From: Joe <dev@freedomcircle.net>
To: Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: ERROR: SELECT query has no destination for result data
Date: Thu, 31 Aug 2006 10:21:17 -0400
Message-ID: <44F6F05D.5040300@freedomcircle.net> (raw)
In-Reply-To: <55c095e90608310600y18d382f2l5cc43410466bbd79@mail.gmail.com>
References: <55c095e90608310600y18d382f2l5cc43410466bbd79@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@freedomcircle.net, ezequias.rocha@gmail.com
Subject: Re: ERROR: SELECT query has no destination for result data
In-Reply-To: <44F6F05D.5040300@freedomcircle.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox