pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: MoNiLlO <monillo@adinf.es>
Cc: pgsql-sql@postgresql.org
Subject: Re: Control reached end of trigger procedure without RETURN
Date: Tue, 25 Jan 2011 10:06:46 -0500
Message-ID: <20377.1295968006@sss.pgh.pa.us> (raw)
In-Reply-To: <4D3E9764.8050904@adinf.es>
References: <397A0940-896A-4DEF-873A-907976E8400B@adinf.es>
	<AANLkTikiED_f2FVDSjtArnB-6eNsQhit1Nzv8W5i-6wD@mail.gmail.com>
	<4D3E9764.8050904@adinf.es>

MoNiLlO <monillo@adinf.es> writes:
> When I launch one insert returns error:
> I put the function and the returned error.

> CREATE OR REPLACE FUNCTION ventas_det_a_ventas_imp()
>   RETURNS trigger AS
> ...

> ERROR:  control reached end of trigger procedure without RETURN
> CONTEXT:  PL/pgSQL function "ventas_imp_a_ventas_cab"

The function that's lacking a RETURN is not the one you're showing us.

			regards, tom lane



view thread (9+ messages)  latest in thread

Message-ID: <20377.1295968006@sss.pgh.pa.us>
Permalink:  ../20377.1295968006@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20377.1295968006@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, monillo@adinf.es
  Subject: Re: Control reached end of trigger procedure without RETURN
  In-Reply-To: <20377.1295968006@sss.pgh.pa.us>

* 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