Re: ERROR: control reached end of function without RETURN - Mailing list pgsql-general

From Ignacio Colmenero
Subject Re: ERROR: control reached end of function without RETURN
Date
Msg-id 20050211194917.VJHS289.priv-edtnes46.telusplanet.net@ignacio
Whole thread Raw
In response to Re: ERROR: control reached end of function without RETURN  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
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



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: test datatype for ANY
Next
From: Michael Fuhr
Date:
Subject: Re: test datatype for ANY