Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e22b09c

Browse files
committed
Fix sorting of multiple fields broken with UNION.
1 parent 4557c84 commit e22b09c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/backend/parser/parse_clause.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.7 1998/01/05 03:32:26 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.8 1998/01/06 23:58:05 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -263,7 +263,6 @@ transformSortClause(ParseState *pstate,
263263
TargetEntry *restarget;
264264
Resdom *resdom;
265265

266-
sortlist = NIL; /* we create it on the fly here */
267266

268267
restarget = find_targetlist_entry(pstate, sortby, targetlist);
269268
if (restarget == NULL)
@@ -274,9 +273,7 @@ transformSortClause(ParseState *pstate,
274273
resdom->restype,
275274
resdom->restype, false));
276275
if (sortlist == NIL)
277-
{
278276
s = sortlist = lcons(sortcl, NIL);
279-
}
280277
else
281278
{
282279
List *i;

0 commit comments

Comments
 (0)