File tree 1 file changed +20
-2
lines changed
1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.22 1997/12/18 19:46:37 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.23 1997/12/23 19:53:30 thomas Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -1466,6 +1466,19 @@ _copySortClause(SortClause *from)
1466
1466
return newnode ;
1467
1467
}
1468
1468
1469
+ #if FALSE
1470
+ static GroupClause *
1471
+ _copyGroupClause (GroupClause * from )
1472
+ {
1473
+ GroupClause * newnode = makeNode (GroupClause );
1474
+
1475
+ Node_Copy (from , newnode , resdom );
1476
+ newnode -> opoid = from -> opoid ;
1477
+
1478
+ return newnode ;
1479
+ }
1480
+ #endif
1481
+
1469
1482
static A_Const *
1470
1483
_copyAConst (A_Const * from )
1471
1484
{
@@ -1542,7 +1555,7 @@ _copyQuery(Query *from)
1542
1555
Node_Copy (from , newnode , havingQual ); /* currently ignored */
1543
1556
1544
1557
newnode -> qry_numAgg = from -> qry_numAgg ;
1545
- if (from -> qry_numAgg != NULL )
1558
+ if (from -> qry_numAgg > 0 )
1546
1559
{
1547
1560
newnode -> qry_aggs =
1548
1561
(Aggreg * * ) palloc (sizeof (Aggreg * ) * from -> qry_numAgg );
@@ -1763,6 +1776,11 @@ copyObject(void *from)
1763
1776
case T_SortClause :
1764
1777
retval = _copySortClause (from );
1765
1778
break ;
1779
+ #if FALSE
1780
+ case T_GroupClause :
1781
+ retval = _copyGroupClause (from );
1782
+ break ;
1783
+ #endif
1766
1784
case T_A_Const :
1767
1785
retval = _copyAConst (from );
1768
1786
break ;
You can’t perform that action at this time.
0 commit comments