Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite22b09c

Browse files
committed
Fix sorting of multiple fields broken with UNION.
1 parent4557c84 commite22b09c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎src/backend/parser/parse_clause.c

Lines changed: 1 addition & 4 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp