66 *
77 *
88 * IDENTIFICATION
9- * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteHandler.c,v 1.60 1999/10/07 04: 23:15 tgl Exp $
9+ * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteHandler.c,v 1.61 1999/10/17 23:50:43 tgl Exp $
1010 *
1111 *-------------------------------------------------------------------------
1212 */
@@ -1806,6 +1806,8 @@ Except_Intersect_Rewrite(Query *parsetree)
18061806bool isBinary ,
18071807isPortal ,
18081808isTemp ;
1809+ Node * limitOffset ,
1810+ * limitCount ;
18091811CmdType commandType = CMD_SELECT ;
18101812List * rtable_insert = NIL ;
18111813
@@ -1856,6 +1858,8 @@ Except_Intersect_Rewrite(Query *parsetree)
18561858isBinary = parsetree -> isBinary ;
18571859isPortal = parsetree -> isPortal ;
18581860isTemp = parsetree -> isTemp ;
1861+ limitOffset = parsetree -> limitOffset ;
1862+ limitCount = parsetree -> limitCount ;
18591863
18601864/*
18611865 * The operator tree attached to parsetree->intersectClause is still
@@ -2057,6 +2061,8 @@ Except_Intersect_Rewrite(Query *parsetree)
20572061result -> isPortal = isPortal ;
20582062result -> isBinary = isBinary ;
20592063result -> isTemp = isTemp ;
2064+ result -> limitOffset = limitOffset ;
2065+ result -> limitCount = limitCount ;
20602066
20612067/*
20622068 * The relation to insert into is attached to the range table of the
@@ -2080,6 +2086,7 @@ Except_Intersect_Rewrite(Query *parsetree)
20802086tent -> resdom -> resname = lfirst (resnames );
20812087resnames = lnext (resnames );
20822088}
2089+
20832090return result ;
20842091}
20852092