1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-03 15:22:11 +03:00

Support for subselects.

(Have to re-visit readfuncs.c)
This commit is contained in:
Vadim B. Mikheev
1998-02-13 03:27:47 +00:00
parent 1a105cefbd
commit dc892fd390
4 changed files with 88 additions and 5 deletions

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.14 1998/02/10 04:00:47 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.15 1998/02/13 03:27:44 vadim Exp $
*
*-------------------------------------------------------------------------
*/
@@ -236,6 +236,7 @@ _equalParam(Param *a, Param *b)
return (false);
break;
case PARAM_NUM:
case PARAM_EXEC:
if (a->paramid != b->paramid)
return (false);
break;
@@ -503,6 +504,18 @@ _equalIndexScan(IndexScan *a, IndexScan *b)
return (true);
}
static bool
_equalSubPlan(SubPlan *a, SubPlan *b)
{
if (a->plan_id != b->plan_id)
return (false);
if (!equal((a->sublink->oper), (b->sublink->oper)))
return (false);
return (true);
}
static bool
_equalJInfo(JInfo *a, JInfo *b)
{
@@ -680,6 +693,9 @@ equal(void *a, void *b)
case T_IndexScan:
retval = _equalIndexScan(a, b);
break;
case T_SubPlan:
retval = _equalSubPlan(a, b);
break;
case T_JInfo:
retval = _equalJInfo(a, b);
break;