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

Commitd5013ab

Browse files
committed
Fix one more place where we were expecting lcons() to be nondestructive
to the original List; per report from Sebastian BÎck. I think this isthe last such bug --- I examined every lcons() call in the backend andthe rest seem OK --- but it's nervous-making that we're still finding'em so many months after the List rewrite went in.
1 parent0b5c72d commitd5013ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/backend/rewrite/rewriteHandler.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/rewrite/rewriteHandler.c,v 1.145 2004/11/06 17:46:35 tgl Exp $
10+
* $PostgreSQL: pgsql/src/backend/rewrite/rewriteHandler.c,v 1.146 2004/11/20 17:59:31 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1267,6 +1267,8 @@ RewriteQuery(Query *parsetree, List *rewrite_events)
12671267
newstuff=RewriteQuery(pt,rewrite_events);
12681268
rewritten=list_concat(rewritten,newstuff);
12691269
}
1270+
1271+
rewrite_events=list_delete_first(rewrite_events);
12701272
}
12711273
}
12721274

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp