7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.28 1998/07/19 05:49:14 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.29 1998/07/20 21:18:32 momjian Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -446,7 +446,7 @@ pg_checkretval(Oid rettype, QueryTreeList *queryTreeList)
446
446
447
447
if (typeTypeRelid (typ ) == InvalidOid )
448
448
{
449
- if (exec_tlist_length (tlist ) > 1 )
449
+ if (ExecTargetListLength (tlist ) > 1 )
450
450
elog (ERROR , "function declared to return %s returns multiple values in final retrieve" , typeTypeName (typ ));
451
451
452
452
resnode = (Resdom * ) ((TargetEntry * ) lfirst (tlist ))-> resdom ;
@@ -464,7 +464,7 @@ pg_checkretval(Oid rettype, QueryTreeList *queryTreeList)
464
464
* is 'retrieve (x = func2())', where func2 has the same return type
465
465
* as the function that's calling it.
466
466
*/
467
- if (exec_tlist_length (tlist ) == 1 )
467
+ if (ExecTargetListLength (tlist ) == 1 )
468
468
{
469
469
resnode = (Resdom * ) ((TargetEntry * ) lfirst (tlist ))-> resdom ;
470
470
if (resnode -> restype == rettype )
@@ -485,7 +485,7 @@ pg_checkretval(Oid rettype, QueryTreeList *queryTreeList)
485
485
relid = reln -> rd_id ;
486
486
relnatts = reln -> rd_rel -> relnatts ;
487
487
488
- if (exec_tlist_length (tlist ) != relnatts )
488
+ if (ExecTargetListLength (tlist ) != relnatts )
489
489
elog (ERROR , "function declared to return type %s does not retrieve (%s.*)" , typeTypeName (typ ), typeTypeName (typ ));
490
490
491
491
/* expect attributes 1 .. n in order */
0 commit comments