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

 El 25/01/2011 16:06, Tom Lane escribió:
> 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
>
Thanks for open my eyes.

Great stupidity  to mine. This is a second trigger that has no code and
therefore there is no return.

I feel the lost of time.

Best regards.



view thread (9+ messages)  latest in thread

Message-ID: <4D3EEABD.3080703@adinf.es>
Permalink:  ../4D3EEABD.3080703@adinf.es/
Also on:    postgresql.org/message-id/4D3EEABD.3080703@adinf.es

 · 

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: monillo@adinf.es
  Subject: Re: Control reached end of trigger procedure without RETURN
  In-Reply-To: <4D3EEABD.3080703@adinf.es>

* 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