6
6
*
7
7
*
8
8
* 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 $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
@@ -1806,6 +1806,8 @@ Except_Intersect_Rewrite(Query *parsetree)
1806
1806
bool isBinary ,
1807
1807
isPortal ,
1808
1808
isTemp ;
1809
+ Node * limitOffset ,
1810
+ * limitCount ;
1809
1811
CmdType commandType = CMD_SELECT ;
1810
1812
List * rtable_insert = NIL ;
1811
1813
@@ -1856,6 +1858,8 @@ Except_Intersect_Rewrite(Query *parsetree)
1856
1858
isBinary = parsetree -> isBinary ;
1857
1859
isPortal = parsetree -> isPortal ;
1858
1860
isTemp = parsetree -> isTemp ;
1861
+ limitOffset = parsetree -> limitOffset ;
1862
+ limitCount = parsetree -> limitCount ;
1859
1863
1860
1864
/*
1861
1865
* The operator tree attached to parsetree->intersectClause is still
@@ -2057,6 +2061,8 @@ Except_Intersect_Rewrite(Query *parsetree)
2057
2061
result -> isPortal = isPortal ;
2058
2062
result -> isBinary = isBinary ;
2059
2063
result -> isTemp = isTemp ;
2064
+ result -> limitOffset = limitOffset ;
2065
+ result -> limitCount = limitCount ;
2060
2066
2061
2067
/*
2062
2068
* The relation to insert into is attached to the range table of the
@@ -2080,6 +2086,7 @@ Except_Intersect_Rewrite(Query *parsetree)
2080
2086
tent -> resdom -> resname = lfirst (resnames );
2081
2087
resnames = lnext (resnames );
2082
2088
}
2089
+
2083
2090
return result ;
2084
2091
}
2085
2092
0 commit comments