Commit 895a4bcc authored by Bruce Momjian's avatar Bruce Momjian

Allow TRUNCATE foo, foo to succeed, per report from Nikhils.

parent 9c8f7491
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.259 2008/06/19 00:46:04 alvherre Exp $ * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.260 2008/07/16 16:54:08 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -762,6 +762,9 @@ ExecuteTruncate(TruncateStmt *stmt) ...@@ -762,6 +762,9 @@ ExecuteTruncate(TruncateStmt *stmt)
ResultRelInfo *resultRelInfo; ResultRelInfo *resultRelInfo;
ListCell *cell; ListCell *cell;
/* make list unique */
stmt->relations = list_union(NIL, stmt->relations);
/* /*
* Open, exclusive-lock, and check all the explicitly-specified relations * Open, exclusive-lock, and check all the explicitly-specified relations
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment