pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ignacio Colmenero <ignacio.colmenero@micotan.com>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
Cc: pgsql-general@postgresql.org
Subject: Re: ERROR: control reached end of function without RETURN
Date: Fri, 11 Feb 2005 12:49:13 -0700
Message-ID: <20050211194917.VJHS289.priv-edtnes46.telusplanet.net@ignacio> (raw)
In-Reply-To: <12914.1108150093@sss.pgh.pa.us>

Thanks Tom.
I didn't know I needed a RETURN statement at the end. I assumed that the
"return next" statement would be enough. It works fine now.

-----------------------------------------------
Ignacio Colmenero
Software Development
Micotan Software Company Ltd.

-----Original Message-----
From: pgsql-general-owner@postgresql.org
[mailto:pgsql-general-owner@postgresql.org] On Behalf Of Tom Lane
Sent: February 11, 2005 12:28 PM
To: Ignacio Colmenero
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] ERROR: control reached end of function without RETURN


"Ignacio Colmenero" <ignacio.colmenero@micotan.com> writes:
> I get the error: ERROR:  control reached end of function without RETURN

> What can be wrong?

You don't have a RETURN statement.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq





view thread (6+ messages)  latest in thread

Message-ID: <20050211194917.VJHS289.priv-edtnes46.telusplanet.net@ignacio>
Permalink:  ../20050211194917.VJHS289.priv-edtnes46.telusplanet.net@ignacio/
Also on:    postgresql.org/message-id/20050211194917.VJHS289.priv-edtnes46.telusplanet.net@ignacio

 · 

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-general@postgresql.org
  Cc: ignacio.colmenero@micotan.com, tgl@sss.pgh.pa.us
  Subject: Re: ERROR: control reached end of function without RETURN
  In-Reply-To: <20050211194917.VJHS289.priv-edtnes46.telusplanet.net@ignacio>

* 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