Re: Calling void functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Calling void functions
Date: 2007-04-02 16:44:26
Message-ID: 10900.1175532266@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> I'm informed that the last statement of a function that returns void cannot be
> a SELECT. How else is one supposed to call another function which also
> returns void?

Hmm, seems like the best answer is to rejigger the order of the tests in
check_sql_fn_retval. I think that logic was designed before we had an
idea of VOID-returning functions.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message sql4-en.narod.ru 2007-04-02 16:56:05 SQL4. I ask you to help in development (or critic).
Previous Message Andrew Sullivan 2007-04-02 15:17:26 Re: Update problem.