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

Commit79f99a3

Browse files
committed
Fix for psort. fixes regression tests.
1 parenta654db3 commit79f99a3

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

‎src/backend/parser/parse_expr.c

Lines changed: 3 additions & 3 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_expr.c,v 1.13 1998/02/0119:43:37 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.14 1998/02/0122:20:39 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -252,14 +252,14 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
252252
lfirst(llist)=transformExpr(pstate,lfirst(llist),precedence);
253253

254254
if (length(sublink->lefthand)!=
255-
length(sublink->subselect->targetList))
255+
length(((Query*)sublink->subselect)->targetList))
256256
elog(ERROR,"Subselect has too many or too few fields.");
257257

258258
if (sublink->subLinkType!=EXISTS_SUBLINK)
259259
{
260260
char*op=lfirst(sublink->oper);
261261
List*left_expr=sublink->lefthand;
262-
List*right_expr=sublink->subselect->targetList;
262+
List*right_expr=((Query*)sublink->subselect)->targetList;
263263
List*elist;
264264

265265
sublink->oper=NIL;

‎src/backend/utils/sort/psort.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.35 1998/01/31 04:39:13 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.36 1998/02/01 22:20:47 momjian Exp $
1111
*
1212
* NOTES
1313
*Sorts the first relation into the second relation.
@@ -1090,7 +1090,7 @@ static int
10901090
_psort_cmp (HeapTuple*ltup,HeapTuple*rtup)
10911091
{
10921092
registerDatumlattr,rattr;
1093-
intnkey=0;
1093+
intnkey;
10941094
intresult=0;
10951095
boolisnull1,isnull2;
10961096

@@ -1119,7 +1119,6 @@ _psort_cmp (HeapTuple *ltup, HeapTuple *rtup)
11191119
}
11201120
elseif (!(result=-(long) (*fmgr_faddr(&PsortKeys[nkey].sk_func)) (lattr,rattr)))
11211121
result= (long) (*fmgr_faddr(&PsortKeys[nkey].sk_func)) (rattr,lattr);
1122-
nkey++;
11231122
}
11241123
return (result);
11251124
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp