CREATE FUNCTION broken

Jan Wieck <jwieck@debis.com>

From: jwieck@debis.com (Jan Wieck)
To: pgsql-hackers@postgreSQL.org (PostgreSQL HACKERS)
Date: 1998-02-13T11:41:14Z
Lists: pgsql-hackers
Hi,

    Someone changed the parser to build a TypeName node on CREATE
    FUNCTION in any  case.  As  a  side  effect,  ALL!  functions
    created  got  the  proretset  attribute  to  true. Thus for a
    SELECT the parser wrapped an Iter node around  the  Expr  and
    since  singleton  functions  set  isDone  the Iter returns no
    tuple up.


Until later, Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#======================================== jwieck@debis.com (Jan Wieck) #


*** define.c.orig	Fri Feb 13 12:14:17 1998
--- define.c	Fri Feb 13 12:14:38 1998
***************
*** 94,100 ****
  		TypeName   *setType = (TypeName *) returnType;
  
  		*prorettype_p = setType->name;
! 		*returnsSet_p = true;
  	}
  	else
  	{
--- 94,100 ----
  		TypeName   *setType = (TypeName *) returnType;
  
  		*prorettype_p = setType->name;
! 		*returnsSet_p = setType->setof;
  	}
  	else
  	{