diff options
author | Marc G. Fournier <scrappy@hub.org> | 1998-02-13 13:23:33 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1998-02-13 13:23:33 +0000 |
commit | a04dcc9137ba7cfe903c9ebffe507f85b199aee4 (patch) | |
tree | e42b1d9fcef9f3a83e11a99c6045720f99ab42e2 | |
parent | b6d5fce95117b72b2d4d3f4eacf8ab5ca2c22215 (diff) | |
download | postgresql-a04dcc9137ba7cfe903c9ebffe507f85b199aee4.tar.gz postgresql-a04dcc9137ba7cfe903c9ebffe507f85b199aee4.zip |
From: Jan Wieck <jwieck@debis.com>
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.
-rw-r--r-- | src/backend/commands/define.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/define.c b/src/backend/commands/define.c index 64189e016b7..ec1df3f56dc 100644 --- a/src/backend/commands/define.c +++ b/src/backend/commands/define.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.21 1998/01/05 16:38:54 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.22 1998/02/13 13:23:33 scrappy Exp $ * * DESCRIPTION * The "DefineFoo" routines take the parse tree and pick out the @@ -94,7 +94,7 @@ compute_return_type(const Node *returnType, TypeName *setType = (TypeName *) returnType; *prorettype_p = setType->name; - *returnsSet_p = true; + *returnsSet_p = setType->setof; } else { |