1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-19 23:22:23 +03:00

Fix oversights in processing of LIMIT expressions during planning.

This commit is contained in:
Tom Lane
2004-05-11 13:15:15 +00:00
parent 1697568d57
commit bef764029b
2 changed files with 18 additions and 4 deletions

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/optimizer/plan/subselect.c,v 1.88 2004/02/03 17:34:03 tgl Exp $
* $PostgreSQL: pgsql/src/backend/optimizer/plan/subselect.c,v 1.89 2004/05/11 13:15:15 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1063,6 +1063,13 @@ finalize_plan(Plan *plan, List *rtable,
&context);
break;
case T_Limit:
finalize_primnode(((Limit *) plan)->limitOffset,
&context);
finalize_primnode(((Limit *) plan)->limitCount,
&context);
break;
case T_Hash:
case T_Agg:
case T_SeqScan:
@@ -1070,7 +1077,6 @@ finalize_plan(Plan *plan, List *rtable,
case T_Sort:
case T_Unique:
case T_SetOp:
case T_Limit:
case T_Group:
break;