Skip to content
Snippets Groups Projects
Commit d5013ab5 authored by Tom Lane's avatar Tom Lane
Browse files

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 is
the last such bug --- I examined every lcons() call in the backend and
the rest seem OK --- but it's nervous-making that we're still finding
'em so many months after the List rewrite went in.
parent 0b5c72d9
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/rewrite/rewriteHandler.c,v 1.145 2004/11/06 17:46:35 tgl Exp $ * $PostgreSQL: pgsql/src/backend/rewrite/rewriteHandler.c,v 1.146 2004/11/20 17:59:31 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -1267,6 +1267,8 @@ RewriteQuery(Query *parsetree, List *rewrite_events) ...@@ -1267,6 +1267,8 @@ RewriteQuery(Query *parsetree, List *rewrite_events)
newstuff = RewriteQuery(pt, rewrite_events); newstuff = RewriteQuery(pt, rewrite_events);
rewritten = list_concat(rewritten, newstuff); rewritten = list_concat(rewritten, newstuff);
} }
rewrite_events = list_delete_first(rewrite_events);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment