Re: ERROR: control reached end of function without RETURN

Поиск
Список
Период
Сортировка
От Ignacio Colmenero
Тема Re: ERROR: control reached end of function without RETURN
Дата
Msg-id 20050211194917.VJHS289.priv-edtnes46.telusplanet.net@ignacio
обсуждение исходный текст
Ответ на Re: ERROR: control reached end of function without RETURN  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: test datatype for ANY
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: test datatype for ANY