1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

Merge rename name page into alter table. Fix UNION with DISTINCT

or ORDER BY bug.
This commit is contained in:
Bruce Momjian
1998-03-31 04:44:35 +00:00
parent 62943bb76f
commit d7050cb68c
5 changed files with 134 additions and 89 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.14 1998/03/18 15:47:51 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.15 1998/03/31 04:43:53 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -313,7 +313,13 @@ transformSortClause(ParseState *pstate,
{
SortClause *sortcl = lfirst(s);
if (sortcl->resdom == tlelt->resdom)
/*
* We use equal() here because we are called for UNION
* from the optimizer, and at that point, the sort clause
* resdom pointers don't match the target list resdom
* pointers
*/
if (equal(sortcl->resdom, tlelt->resdom))
break;
s = lnext(s);
}